casa
$Rev:20696$
|
TBParser subclass that uses a DOM parser in the XERCES library. More...
#include <TBParser.h>
Public Member Functions | |
TBXercesDOMParser (TableParams *tp) | |
Constructor that takes the table parameters. | |
virtual | ~TBXercesDOMParser () |
Result | parse (String *xml, bool parsedata=true) |
Implements TBParser::parse(). | |
Private Member Functions | |
Result | parseXML (const DOMElement *element, bool parsedata) |
First level parsing method that takes the top-level element and parses it. | |
Result | parseTable (const DOMElement *element, bool parsedata) |
Second level parsing method that takes the TABLE element and parses the table out of it. | |
Result | parseTableData (const DOMElement *element) |
Third level parsing method that takes the TABLEDATA element and parses the table data out of it. |
TBParser subclass that uses a DOM parser in the XERCES library.
TBXercesDOMParser is a subclass of TBParser that implements all the parsing methods using a XERCES DOM parser. Although the actual parsing happens quickly, deciphering table data from the parsed XML is somewhat slow and thus the use of TBXercesDOMParser is not recommended.
Definition at line 184 of file TBParser.h.
Constructor that takes the table parameters.
virtual casa::TBXercesDOMParser::~TBXercesDOMParser | ( | ) | [virtual] |
Result casa::TBXercesDOMParser::parse | ( | String * | xml, |
bool | parsedata = true |
||
) | [virtual] |
Implements TBParser::parse().
The String is parsed into DOMElements and then the table information is parsed from the DOMElements.
Implements casa::TBParser.
Result casa::TBXercesDOMParser::parseTable | ( | const DOMElement * | element, |
bool | parsedata | ||
) | [private] |
Second level parsing method that takes the TABLE element and parses the table out of it.
Result casa::TBXercesDOMParser::parseTableData | ( | const DOMElement * | element | ) | [private] |
Third level parsing method that takes the TABLEDATA element and parses the table data out of it.
Result casa::TBXercesDOMParser::parseXML | ( | const DOMElement * | element, |
bool | parsedata | ||
) | [private] |
First level parsing method that takes the top-level element and parses it.