#include <ParserBase.h>
Public Member Functions | |
ParserInput () | |
virtual | ~ParserInput () |
virtual const std::string & | fileName () const =0 |
virtual int | lineNumber () const =0 |
virtual int | nextChar ()=0 throw (ParserInputException) |
virtual void | pushChar (int c)=0 throw (ParserInputException) |
Static Public Attributes | |
static const int | Eof = -1 |
It encapsulates and hides the reading machinery. It can be implemented as a file read, a stream read, a decompressing file read, a network read or whatever else is needed.
Tagcoll::ParserInput::ParserInput | ( | ) | [inline] |
virtual Tagcoll::ParserInput::~ParserInput | ( | ) | [inline, virtual] |
virtual const std::string& Tagcoll::ParserInput::fileName | ( | ) | const [pure virtual] |
Implemented in Tagcoll::MemParserInput, Tagcoll::StdioParserInput, and Tagcoll::StringParserInput.
virtual int Tagcoll::ParserInput::lineNumber | ( | ) | const [pure virtual] |
Implemented in Tagcoll::MemParserInput, Tagcoll::StdioParserInput, and Tagcoll::StringParserInput.
virtual int Tagcoll::ParserInput::nextChar | ( | ) | throw (ParserInputException) [pure virtual] |
Implemented in Tagcoll::MemParserInput, Tagcoll::StdioParserInput, and Tagcoll::StringParserInput.
virtual void Tagcoll::ParserInput::pushChar | ( | int | c | ) | throw (ParserInputException) [pure virtual] |
Implemented in Tagcoll::MemParserInput, Tagcoll::StdioParserInput, and Tagcoll::StringParserInput.
const int Tagcoll::ParserInput::Eof = -1 [static] |