tagcoll::TagexprParser Class Reference

Parser for tag expressions. More...

#include <TagexprParser.h>

Collaboration diagram for tagcoll::TagexprParser:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void setResult (const Expression &result)
void addError (const std::string &message)
Expression parse (const std::string &buffer)
 Parse a string into a Tagexpr object.

Static Public Member Functions

static TagexprParserinstance ()
 Access the global instance of the parser.

Protected Attributes

Expression result
std::string errorMessage

Static Protected Attributes

static TagexprParser_instance = 0


Detailed Description

Parser for tag expressions.

This is a singleton class. It is not intended to be instantiated directly, but accessed using the instance() method.


Member Function Documentation

void tagcoll::TagexprParser::setResult ( const Expression result  )  [inline]

void tagcoll::TagexprParser::addError ( const std::string &  message  )  [inline]

Expression tagcoll::TagexprParser::parse ( const std::string &  buffer  ) 

Parse a string into a Tagexpr object.

Parameters:
buffer The string with the expression to parse
Returns:
The parsed expression
Exceptions:
ConsistencyCheckException if parsing fails.

TagexprParser * TagexprParser::instance (  )  [static]

Access the global instance of the parser.


Member Data Documentation

TagexprParser * TagexprParser::_instance = 0 [static, protected]

Expression tagcoll::TagexprParser::result [protected]

std::string tagcoll::TagexprParser::errorMessage [protected]


The documentation for this class was generated from the following files:
Generated on Fri Feb 8 10:50:45 2008 for libtagcoll by  doxygen 1.5.4