OpenMS  2.4.0
Public Member Functions | Private Attributes | List of all members
IMSAlphabetTextParser Class Reference

Implements abstract AlphabetParser to read data from the plain text format. More...

#include <OpenMS/CHEMISTRY/MASSDECOMPOSITION/IMS/IMSAlphabetTextParser.h>

Inheritance diagram for IMSAlphabetTextParser:
IMSAlphabetParser<>

Public Member Functions

ContainerTypegetElements () override
 
void parse (std::istream &is) override
 
- Public Member Functions inherited from IMSAlphabetParser<>
void load (const std::string &fname)
 
virtual ~IMSAlphabetParser ()
 Destructor. More...
 

Private Attributes

ContainerType elements_
 

Additional Inherited Members

- Public Types inherited from IMSAlphabetParser<>
typedef std::map< std::string, doubleContainerType
 

Detailed Description

Implements abstract AlphabetParser to read data from the plain text format.

AlphabetTextParser parses the data source using overridden parse(std::istream&) and stores the parsed data permanently. That can be retrieved by getElements() function.

Member Function Documentation

◆ getElements()

ContainerType& getElements ( )
inlineoverridevirtual

Gets the parsed data.

Returns
The parsed data.

Implements IMSAlphabetParser<>.

◆ parse()

void parse ( std::istream &  is)
overridevirtual

Parses the input stream is.

Parameters
isThe input stream to be parsed

Implements IMSAlphabetParser<>.

Member Data Documentation

◆ elements_

ContainerType elements_
private

The parsed data.