11#include "MantidDataHandling/DllConfig.h"
17namespace DataHandling {
40 const std::string
name()
const override {
return "LoadAscii"; }
42 const std::string
summary()
const override {
43 return "Loads data from a text file and stores it in a 2D workspace "
44 "(Workspace2D class).";
48 int version()
const override {
return 1; }
50 const std::string
category()
const override {
return "DataHandling\\Text"; }
56 virtual void processHeader(std::ifstream &file)
const;
61 void peekLine(std::ifstream &is, std::string &str)
const;
63 bool skipLine(
const std::string &line)
const;
65 int splitIntoColumns(std::list<std::string> &columns,
const std::string &str)
const;
67 void fillInputValues(std::vector<double> &values,
const std::list<std::string> &columns)
const;
Class for marking algorithms as deprecated.
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.
const std::string name() const override
The name of the algorithm.
std::string m_columnSep
The column separator.
const std::string category() const override
The category.
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
The version number.
std::map< std::string, std::string > m_separatorIndex
Map the separator options to their string equivalents.
Defines a wrapper around an open file.
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
Helper class which provides the Collimation Length for SANS instruments.