Tagcoll::ParserInput Class Reference

Generic interface for parser input readers. More...

#include <ParserBase.h>

Inheritance diagram for Tagcoll::ParserInput:

Inheritance graph
[legend]
List of all members.

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

Detailed Description

Generic interface for parser input readers.

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.


Constructor & Destructor Documentation

Tagcoll::ParserInput::ParserInput (  )  [inline]

virtual Tagcoll::ParserInput::~ParserInput (  )  [inline, virtual]


Member Function Documentation

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.


Member Data Documentation

const int Tagcoll::ParserInput::Eof = -1 [static]


The documentation for this class was generated from the following file:
Generated on Wed Jun 20 19:25:52 2007 for libtagcoll by  doxygen 1.5.2