OpenMS
2.7.0
|
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 |
Convert to bool. More... | |
Public Attributes | |
std::stringstream | line_ |
std::ios::pos_type | line_position_ |
Stores information about the current input line (i.e., stream for the line and the current position in the stream)
InputLine | ( | ) |
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.
void seekGToSavedPosition | ( | ) |
Resets the stream to the last saved position.
void setToString | ( | const std::string & | s | ) |
Initialize the input line to the passed string.
void updatePosition | ( | ) |
Save current position of the stream.
std::stringstream line_ |
std::ios::pos_type line_position_ |