Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

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::StdioParserInput, and Tagcoll::StringParserInput.

virtual int Tagcoll::ParserInput::lineNumber  )  const [pure virtual]
 

Implemented in Tagcoll::StdioParserInput, and Tagcoll::StringParserInput.

virtual int Tagcoll::ParserInput::nextChar  )  throw (ParserInputException) [pure virtual]
 

Implemented in Tagcoll::StdioParserInput, and Tagcoll::StringParserInput.

virtual void Tagcoll::ParserInput::pushChar int  c  )  throw (ParserInputException) [pure virtual]
 

Implemented in 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 Fri Sep 9 22:15:37 2005 for libtagcoll by  doxygen 1.4.4