An abstract templatized parser to load the data that is used to initialize Alphabet objects.
More...
#include <OpenMS/CHEMISTRY/MASSDECOMPOSITION/IMS/IMSAlphabetParser.h>
Public Types | |
| typedef Container | ContainerType |
Public Member Functions | |
| void | load (const std::string &fname) |
| virtual ContainerType & | getElements ()=0 |
| virtual void | parse (InputSource &is)=0 |
| virtual | ~IMSAlphabetParser () |
| Destructor. | |
An abstract templatized parser to load the data that is used to initialize Alphabet objects.
AlphabetParser reads the input source, which is given as a template parameter InputSource , by load (const std::string& fname) function where fname is the source name. Loaded data can be retrieved by calling getElements().
| typedef Container ContainerType |
Type of data to be loaded.
| virtual ~IMSAlphabetParser | ( | ) | [inline, virtual] |
Destructor.
| virtual ContainerType& getElements | ( | ) | [pure virtual] |
| void load | ( | const std::string & | fname | ) |
Loads the data from the InputSource with the name fname. If there is an error occurred while reading data from InputSource, IOException is thrown.
| fname | The name of the input source. |
References IMSAlphabetParser< AlphabetElementType, Container, InputSource >::parse().
| virtual void parse | ( | InputSource & | is | ) | [pure virtual] |
Parses the the given input source is .
| is | The InputSource |
Implemented in IMSAlphabetTextParser.
Referenced by IMSAlphabetParser< AlphabetElementType, Container, InputSource >::load().
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:59 using doxygen 1.7.1 |