#include <TagexprParser.h>
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 TagexprParser * | instance () |
Access the global instance of the parser. | |
Protected Attributes | |
Expression | result |
std::string | errorMessage |
Static Protected Attributes | |
static TagexprParser * | _instance = 0 |
This is a singleton class. It is not intended to be instantiated directly, but accessed using the instance() method.
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.
buffer | The string with the expression to parse |
ConsistencyCheckException | if parsing fails. |
TagexprParser * TagexprParser::instance | ( | ) | [static] |
Access the global instance of the parser.
TagexprParser * TagexprParser::_instance = 0 [static, protected] |
Expression tagcoll::TagexprParser::result [protected] |
std::string tagcoll::TagexprParser::errorMessage [protected] |