casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions
casa::TBXercesDOMParser Class Reference

TBParser subclass that uses a DOM parser in the XERCES library. More...

#include <TBParser.h>

Inheritance diagram for casa::TBXercesDOMParser:
casa::TBParser

List of all members.

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.

Detailed Description

TBParser subclass that uses a DOM parser in the XERCES library.

Synopsis

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 & Destructor Documentation

Constructor that takes the table parameters.


Member Function Documentation

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.


The documentation for this class was generated from the following file: