OpenMS  2.8.0
Public Member Functions | Public Attributes | List of all members
FuzzyStringComparator::InputLine Struct Reference

Stores information about the current input line (i.e., stream for the line and the current position in the stream) More...

#include <OpenMS/CONCEPT/FuzzyStringComparator.h>

Collaboration diagram for FuzzyStringComparator::InputLine:
[legend]

Public Member Functions

 InputLine ()
 
void setToString (const std::string &s)
 Initialize the input line to the passed string. More...
 
void updatePosition ()
 Save current position of the stream. More...
 
void seekGToSavedPosition ()
 Resets the stream to the last saved position. More...
 
bool ok () const
 Convert to bool. More...
 

Public Attributes

std::stringstream line_
 
std::ios::pos_type line_position_
 

Detailed Description

Stores information about the current input line (i.e., stream for the line and the current position in the stream)

Constructor & Destructor Documentation

◆ InputLine()

InputLine ( )

Member Function Documentation

◆ ok()

bool ok ( ) const

Convert to bool.

The function indicates success when none of the error flags (either failbit or badbit of the nested std::stringstream) are set.

Returns
False on error, true otherwise.

◆ seekGToSavedPosition()

void seekGToSavedPosition ( )

Resets the stream to the last saved position.

◆ setToString()

void setToString ( const std::string &  s)

Initialize the input line to the passed string.

◆ updatePosition()

void updatePosition ( )

Save current position of the stream.

Member Data Documentation

◆ line_

std::stringstream line_

◆ line_position_

std::ios::pos_type line_position_