|
Go to the documentation of this file.
24 #ifndef FAUDES_TOKENREADER_H
25 #define FAUDES_TOKENREADER_H
83 TokenReader(Mode mode, const std::string& rInString= "");
126 std::istream* Streamp( void);
147 std::string FileName( void) const;
168 bool Peek( Token& token);
184 bool Get( Token& token);
206 bool ExistsBegin( const std::string& rLabel);
224 void ReadBegin( const std::string& rLabel);
242 void ReadBegin( const std::string& rLabel, Token& rToken);
256 void ReadEnd( const std::string& rLabel);
279 void SeekBegin( const std::string& rLabel);
297 void SeekBegin( const std::string& rLabel, Token& rToken);
320 bool Eos( const std::string& rLabel);
334 long int ReadInteger( void);
348 double ReadFloat( void);
362 std::string ReadString( void);
376 std::string ReadOption( void);
392 void ReadBinary(std::string& rData);
414 void ReadText( const std::string& rLabel, std::string& rText);
436 void ReadVerbatim( const std::string& rLabel, std::string& rText);
453 void ReadCharacterData(std::string& rData);
471 void ReadSection(std::string& rSectionString);
485 int Line( void) const;
493 int Level( void) const { return mLevel;};
501 bool Recover( int level);
511 bool Reset( int level=-1);
516 std::string FileLine( void) const;
A TokenReader reads sequential tokens from a file or string.
Mode Mode of operation: read from file, stdin or string.
Token mPeekToken peek buffer
bool mFaudesComments flag to ignore faudes comments marked by ''
int Level(void) const Return current level of section nesting.
std::istringstream * mpSStream actual stream object on heap, string input
std::istream * mpStream istream object pointer
int mLineCount Line counter.
std::ifstream mFStream actual stream object, file input
int mLevel Level (of nested sections)
std::string mFileName Filename.
std::vector< LState > mLevelState
Mode SourceMode(void) const Access stream mode.
long int mFilePos file position
Tokens model atomic data for stream IO.
libFAUDES resides within the namespace faudes.
State on entry of respective level.
libFAUDES 2.32b
--- 2024.03.01
--- c++ api documentaion by doxygen
|