13#include "MantidDataHandling/DllConfig.h"
14#include "MantidHistogramData/Histogram.h"
21namespace DataHandling {
38 const std::string
name()
const override {
return "LoadRKH"; }
40 const std::string
summary()
const override {
return "Load a file written in the RKH format"; }
43 int version()
const override {
return (1); }
44 const std::vector<std::string>
seeAlso()
const override {
return {
"SaveRKH"}; }
46 const std::string
category()
const override {
return "DataHandling\\Text;SANS\\DataHandling"; }
64 bool is2D(
const std::string &testLine);
68 const std::string readUnit(
const std::string &line);
69 void readNumEntrys(
const int nEntries,
MantidVec &output);
73 void skipLines(std::istream &strm,
int nlines);
76 bool hasXerror(std::ifstream &stream);
79 void readLinesForRKH1D(std::istream &stream,
int readStart,
int readEnd, HistogramData::Points &x,
80 HistogramData::Counts &y, HistogramData::CountStandardDeviations &ye,
81 HistogramData::PointStandardDeviations &xe,
API::Progress &prog,
bool readXError =
false);
Defines an interface to an algorithm that loads a file so that it can take part in the automatic sele...
Helper class for reporting progress from algorithms.
Loads an RKH file into a Mantid 1D workspace.
std::unordered_set< std::string > m_RKHKeys
Store the units added as options for this algorithm.
const std::string name() const override
Algorithm's name.
const std::string category() const override
Algorithm's category for identification.
std::unordered_set< std::string > m_unitKeys
Store the units known to the UnitFactory.
std::ifstream m_fileIn
the input stream for the file being loaded
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 summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version.
Defines a wrapper around an open file.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.
std::vector< double > MantidVec
typedef for the data storage used in Mantid matrix workspaces