10#include "MantidDataHandling/DllConfig.h"
14namespace DataHandling {
34 const std::string
name()
const override {
return "SaveNexus"; };
36 const std::string
summary()
const override {
37 return "The SaveNexus algorithm will write the given Mantid workspace to a "
38 "NeXus file. SaveNexus currently just invokes SaveNexusProcessed.";
42 int version()
const override {
return 1; };
43 const std::vector<std::string>
seeAlso()
const override {
44 return {
"SaveISISNexus",
"SaveNexusPD",
"SaveNexusProcessed",
"LoadNexus"};
47 const std::string
category()
const override {
return "DataHandling\\Nexus"; }
67 void runSaveNexusProcessed();
69 void setOtherProperties(
IAlgorithm *alg,
const std::string &propertyName,
const std::string &propertyValue,
70 int perioidNum)
override;
74 bool processGroups()
override;
IAlgorithm is the interface implemented by the Algorithm base class.
Base class for algorithms that can only run serially (Parallel::ExecutionMode::MasterOnly) in an MPI ...
Saves a file in NeXus format and from a 2D workspace (Workspace2D class).
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
std::string m_filetype
The file type to save, currently only one type possible.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
std::string m_filename
The name and path of the input file.
std::string m_dataname
The prefix to be used to name spectra (_n added for nth spectra)
std::string m_entryname
The name and path of the input file.
API::Workspace_sptr m_inputWorkspace
Pointer to the local workspace.
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
Helper class which provides the Collimation Length for SANS instruments.