13#include "MantidDataHandling/DllConfig.h"
17namespace DataHandling {
26 const std::string
name()
const override {
return "SaveOpenGenieAscii"; }
29 const std::string
summary()
const override {
return "Saves a focused data set into an OpenGenie ASCII file "; }
32 int version()
const override {
return (1); }
33 const std::vector<std::string>
seeAlso()
const override {
return {
"SaveAscii"}; }
36 const std::string
category()
const override {
return "Diffraction\\DataHandling;DataHandling\\Text"; }
48 inline void addToOutputBuffer(
const std::string &outName,
const std::string &outType,
const std::string &outVal) {
53 void applyEnginxFormat();
56 void calculateXYZDelta(
const std::string &unit,
const Kernel::Property *values);
60 template <
typename T>
void convertWorkspaceData(
const T &histoData,
const char &axis);
63 void determineEnginXBankId();
69 void inputValidation();
72 void openFileStream(std::ofstream &stream);
75 void storeEmptyFields();
78 void storeWorkspaceInformation();
81 void writeDataToFile(std::ofstream &outfile);
88 const std::string m_stringType =
"String";
90 const std::string m_floatType =
"Float";
92 const std::string m_intType =
"Integer";
Base class from which all concrete algorithm classes should be derived.
API::MatrixWorkspace_const_sptr m_inputWS
Workspace to save.
const std::string category() const override
Algorithm's category for identification.
std::tuple< std::string, std::string, std::string > OutputBufferEntry
Typedef of a tuple containing the name, type and value as strings.
const std::string summary() const override
Summary of algorithms purpose.
~SaveOpenGenieAscii()=default
SaveOpenGenieAscii()=default
(Empty) Constructor
std::vector< OutputBufferEntry > m_outputVector
Output buffer which holds the tuples to be written.
int version() const override
Algorithm's version.
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 name() const override
Algorithm's name.
void addToOutputBuffer(const std::string &outName, const std::string &outType, const std::string &outVal)
Base class for properties.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Helper class which provides the Collimation Length for SANS instruments.