|
Go to the documentation of this file.
25 #ifndef FAUDES_TOKENREADER_H
26 #define FAUDES_TOKENREADER_H
84 TokenReader(Mode mode, const std::string& rInString= "");
127 std::istream* Streamp( void);
148 std::string FileName( void) const;
169 bool Peek( Token& token);
185 bool Get( Token& token);
207 bool ExistsBegin( const std::string& rLabel);
225 void ReadBegin( const std::string& rLabel);
243 void ReadBegin( const std::string& rLabel, Token& rToken);
257 void ReadEnd( const std::string& rLabel);
280 void SeekBegin( const std::string& rLabel);
298 void SeekBegin( const std::string& rLabel, Token& rToken);
321 bool Eos( const std::string& rLabel);
335 long int ReadInteger( void);
349 double ReadFloat( void);
363 std::string ReadString( void);
377 std::string ReadOption( void);
393 void ReadBinary(std::string& rData);
415 void ReadText( const std::string& rLabel, std::string& rText);
437 void ReadVerbatim( const std::string& rLabel, std::string& rText);
454 void ReadCharacterData(std::string& rData);
472 void ReadSection(std::string& rSectionString);
486 int Line( void) const;
494 int Level( void) const { return mLevel;};
502 bool Recover( int level);
512 bool Reset( int level=-1);
517 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.32f
--- 2024.12.22
--- c++ api documentaion by doxygen
|