36 auto const &
group = std::dynamic_pointer_cast<WorkspaceGroup>(
workspace)->getAllItems();
37 std::ranges::for_each(
group.cbegin(),
group.cend(), [&](
auto const &wsChild) {
38 m_workspaces.push_back(std::dynamic_pointer_cast<MatrixWorkspace>(wsChild));
48 for (
size_t wksIndex = 0; wksIndex <
m_workspaces.size(); wksIndex++) {
#define DECLARE_ALGORITHM(classname)
IPeaksWorkspace_sptr workspace
std::string getPropertyValue(const std::string &name) const override
Get the value of a property as a string.
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
std::map< std::string, std::string > validateStandardInputs() const
void initStandardProperties()
std::unique_ptr< API::Progress > m_progress
void saveSingleWorkspaceFile(const API::MatrixWorkspace_sptr &workspace, const std::filesystem::path &path) const
Saves NXcanSAS data for a matrix workspace.
SaveNXcanSAS : Saves a reduced workspace in the NXcanSAS format.
std::vector< API::MatrixWorkspace_sptr > m_workspaces
bool checkGroups() override
Override processGroups.
void init() override
Initialisation code.
void exec() override
Execution code.
std::map< std::string, std::string > validateInputs() override
Perform validation of ALL the input properties of the algorithm.
void processAllWorkspaces()
bool processGroups() override
Process WorkspaceGroup inputs.
SaveNXcanSAS()
Constructor.
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
std::filesystem::path MANTID_DATAHANDLING_DLL prepareFilename(const std::string &baseFilename, bool addDigitSuffix=false, size_t index=0)