13#include "MantidDataHandling/DllConfig.h"
14#include "MantidHistogramData/Histogram.h"
17namespace DataHandling {
37 const std::string
name()
const override {
return "LoadSpec"; }
39 const std::string
summary()
const override {
40 return "Loads data from a text file and stores it in a 2D workspace "
41 "(Workspace2D class).";
44 int version()
const override {
return 1; }
45 const std::vector<std::string>
seeAlso()
const override {
return {
"LoadSNSspec"}; }
46 const std::string
category()
const override {
return "DataHandling\\Text"; }
53 size_t readNumberOfSpectra(std::ifstream &file)
const;
55 void readLine(
const std::string &line, std::vector<double> &buffer)
const;
57 void readHistogram(
const std::vector<double> &input, HistogramData::Histogram &histogram)
const;
Base class from which all concrete algorithm classes should be derived.
Loads a workspace from an ascii file.
std::pair< std::string, const char * > separator_pair
serparator pair type def
const std::string name() const override
function to return a name of the algorithm, must be overridden in all algorithms
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
function to return a category of the algorithm.
const std::string summary() const override
Summary of algorithms purpose.
std::vector< std::string > m_seperator_options
Allowed values for the cache property.
int version() const override
function to return a version of the algorithm, must be overridden in all algorithms
std::map< std::string, const char * > m_separatormap
a map of seperators
LoadSpec()
Empty constructor.
Helper class which provides the Collimation Length for SANS instruments.