34 template <
typename AlphabetElementType = double,
35 typename Container = std::map<std::string, AlphabetElementType>,
36 typename InputSource = std::istream>
52 void load(
const std::string & fname);
66 virtual void parse(InputSource & is) = 0;
72 template <
typename AlphabetElementType,
typename Container,
typename InputSource>
75 std::ifstream ifs(fname.c_str());
General IOException.
Definition: Exception.h:527
An abstract templatized parser to load the data that is used to initialize Alphabet objects.
Definition: IMSAlphabetParser.h:38
virtual ContainerType & getElements()=0
virtual ~IMSAlphabetParser()
Destructor.
Definition: IMSAlphabetParser.h:69
Container ContainerType
Definition: IMSAlphabetParser.h:43
virtual void parse(InputSource &is)=0
void load(const std::string &fname)
Definition: IMSAlphabetParser.h:73
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19