#include <domainParser.h>
Classes | |
struct | TreeItem |
An item in the parse tree. More... | |
Public Member Functions | |
DomainParser () | |
void | dumpTree () const |
std::string | getName () const |
Returns the domain name as defined in the file. | |
bool | parse (const std::string &filename) |
~DomainParser () | |
Protected Member Functions | |
void | dumpItem (const TreeItem &it, unsigned int indent) const |
void | parseContent () |
TreeItem | parseTreeItem (QStringList &tokens) |
Recursively parse a tree item. | |
Protected Attributes | |
std::string | _name |
TreeItem | _parseTreeRoot |
Definition at line 9 of file domainParser.h.
Definition at line 6 of file domainParser.cpp.
Definition at line 10 of file domainParser.cpp.
void DomainParser::dumpItem | ( | const TreeItem & | it, |
unsigned int | indent | ||
) | const [protected] |
Definition at line 90 of file domainParser.cpp.
void DomainParser::dumpTree | ( | ) | const |
Definition at line 85 of file domainParser.cpp.
std::string DomainParser::getName | ( | ) | const [inline] |
Returns the domain name as defined in the file.
Definition at line 18 of file domainParser.h.
bool DomainParser::parse | ( | const std::string & | filename | ) |
Definition at line 14 of file domainParser.cpp.
void DomainParser::parseContent | ( | ) | [protected] |
Definition at line 75 of file domainParser.cpp.
DomainParser::TreeItem DomainParser::parseTreeItem | ( | QStringList & | tokens | ) | [protected] |
Recursively parse a tree item.
A tree item should be '( stuff )'
Definition at line 48 of file domainParser.cpp.
std::string DomainParser::_name [protected] |
Definition at line 41 of file domainParser.h.
TreeItem DomainParser::_parseTreeRoot [protected] |
Definition at line 43 of file domainParser.h.