10#include "MantidDataHandling/DllConfig.h"
15namespace DataHandling {
22 const std::string
name()
const override {
return "LoadPDFgetNFile"; }
24 const std::string
summary()
const override {
return "Types of PDFgetN data files include .sqa, .sq, .gr, and etc."; }
27 int version()
const override {
return 1; }
28 const std::vector<std::string>
seeAlso()
const override {
return {
"LoadAscii"}; }
31 const std::string
category()
const override {
return "Diffraction\\DataHandling;DataHandling\\Text"; }
42 void parseDataFile(
const std::string &filename);
45 bool startsWith(
const std::string &s,
const std::string &header)
const;
48 void parseColumnNameLine(std::string line);
51 void parseDataLine(std::string line);
57 std::vector<std::vector<double>>
mData;
63 void generateDataWorkspace();
68 void checkSameSize(
const std::vector<size_t> &numptsvec,
size_t numsets);
Defines an interface to an algorithm that loads a file so that it can take part in the automatic sele...
LoadPDFgetNFile : TODO: DESCRIPTION.
const std::string summary() const override
Summary of algorithms purpose.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
std::vector< std::string > mColumnNames
Names of the columns of the data.
DataObjects::Workspace2D_sptr outWS
Output data workspace.
std::vector< std::vector< double > > mData
Data structure to hold input: Size = Number of columns in input file.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
int version() const override
Algorithm's version for identification overriding a virtual method.
Defines a wrapper around an open file.
bool startsWith(const string &str, const string &prefix)
Returns true if str starts with prefix.
std::shared_ptr< Workspace2D > Workspace2D_sptr
shared pointer to Mantid::DataObjects::Workspace2D
Helper class which provides the Collimation Length for SANS instruments.