Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
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>

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
 

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

Member Function Documentation

bool ok ( ) const
inline

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.
void seekGToSavedPosition ( )
inline

Resets the stream to the last saved position.

Referenced by FuzzyStringComparator::StreamElement_::fillFromInputLine().

void setToString ( const std::string &  s)
inline

Initialize the input line to the passed string.

void updatePosition ( )
inline

Save current position of the stream.

Referenced by FuzzyStringComparator::StreamElement_::fillFromInputLine().

Member Data Documentation

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

OpenMS / TOPP release 1.11.1 Documentation generated on Thu Nov 14 2013 11:19:28 using doxygen 1.8.5