| OpenMS 2.5.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:

## Public Member Functions

ContainerType & | getElements () 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, double > | ContainerType

## 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 | ( |  | ) |

inline override virtual

Gets the parsed data.

Returns
  The parsed data.

Implements IMSAlphabetParser<>.

## ◆ parse()

void parse | ( | std::istream & | is | ) |

override virtual

Parses the input stream `is`.

Parameters

  is | The input stream to be parsed

Implements IMSAlphabetParser<>.

## Member Data Documentation

## ◆ elements_

ContainerType elements_

private

The parsed data.