13#include "MantidDataHandling/DllConfig.h"
14#include "MantidHistogramData/Histogram.h"
18namespace DataHandling {
38 const std::string
name()
const override {
return "LoadSpec"; }
40 const std::string
summary()
const override {
41 return "Loads data from a text file and stores it in a 2D workspace "
42 "(Workspace2D class).";
45 int version()
const override {
return 1; }
46 const std::string
category()
const override {
return "DataHandling\\Text"; }
56 size_t readNumberOfSpectra(std::ifstream &file)
const;
58 void readLine(
const std::string &line, std::vector<double> &buffer)
const;
60 void readHistogram(
const std::vector<double> &input, HistogramData::Histogram &histogram)
const;
Defines an interface to an algorithm that loads a file so that it can take part in the automatic sele...
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::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.
Defines a wrapper around an open file.
Helper class which provides the Collimation Length for SANS instruments.