36 #ifndef OPENMS_CHEMISTRY_MASSDECOMPOSITION_IMS_IMSALPHABETPARSER_H 
   37 #define OPENMS_CHEMISTRY_MASSDECOMPOSITION_IMS_IMSALPHABETPARSER_H 
   61     template <
typename AlphabetElementType = 
double,
 
   62               typename Container = std::map<std::string, AlphabetElementType>,
 
   63               typename InputSource = std::istream>
 
   79       void load(
const std::string & fname);
 
   93       virtual void parse(InputSource & is) = 0;
 
   99     template <
typename AlphabetElementType, 
typename Container, 
typename InputSource>
 
  102       std::ifstream ifs(fname.c_str());
 
  113 #endif // OPENMS_CHEMISTRY_MASSDECOMPOSITION_IMS_ALPHABETPARSER_H 
virtual ContainerType & getElements()=0
virtual void parse(InputSource &is)=0
void load(const std::string &fname)
Definition: IMSAlphabetParser.h:100
Container ContainerType
Definition: IMSAlphabetParser.h:70
virtual ~IMSAlphabetParser()
Destructor. 
Definition: IMSAlphabetParser.h:96
General IOException. 
Definition: Exception.h:566
An abstract templatized parser to load the data that is used to initialize Alphabet objects...
Definition: IMSAlphabetParser.h:64