OpenMS
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:
[legend]
Collaboration diagram for IMSAlphabetTextParser:
[legend]

Public Member Functions

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

Private Attributes

ContainerType elements_
 

Additional Inherited Members

- Public Types inherited from IMSAlphabetParser< AlphabetElementType, Container, InputSource >
typedef Container 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 ( )
inlineoverridevirtual

Gets the parsed data.

Returns
The parsed data.

Implements IMSAlphabetParser< AlphabetElementType, Container, InputSource >.

◆ parse()

void parse ( std::istream &  is)
override

Parses the input stream is.

Parameters
isThe input stream to be parsed

Member Data Documentation

◆ elements_

ContainerType elements_
private

The parsed data.