casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | List of all members
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

Public Member Functions

 TBXercesDOMParser (TableParams *tp)
 Constructor that takes the table parameters. More...
 
virtual ~TBXercesDOMParser ()
 
Result parse (casacore::String *xml, bool parsedata=true)
 Implements TBParser::parse(). More...
 
- Public Member Functions inherited from casa::TBParser
 TBParser (TableParams *tp)
 Constructor which takes a TableParams argument to store references to the table parameters. More...
 
virtual ~TBParser ()
 
std::vector< std::vector
< casacore::String > * > * 
getData ()
 
void setPrintDebug (bool pdb)
 Set whether the TBParser should print debug information or not. More...
 

Private Member Functions

Result parseXML (const DOMElement *element, bool parsedata)
 First level parsing method that takes the top-level element and parses it. More...
 
Result parseTable (const DOMElement *element, bool parsedata)
 Second level parsing method that takes the TABLE element and parses the table out of it. More...
 
Result parseTableData (const DOMElement *element)
 Third level parsing method that takes the TABLEDATA element and parses the table data out of it. More...
 

Additional Inherited Members

- Protected Attributes inherited from casa::TBParser
bool & insertRow
 Is true if this table allows for the insertion of rows, false otherwise. More...
 
bool & removeRow
 Is true if this table allows for the deletion of rows, false otherwise. More...
 
std::vector< std::vector
< casacore::String > * > 
data
 Holds the table data. More...
 
std::vector< std::vector
< TBData * > * > & 
data2
 Holds the "real" table data. More...
 
std::vector< TBField * > & fields
 Holds the table fields. More...
 
std::vector< TBKeyword * > & keywords
 Holds the table keywords. More...
 
std::vector< int > & subtableRows
 Holds the list of the number of rows for each subtable. More...
 
int & totalRows
 Holds the total number of rows in the table. More...
 
int & loadedRows
 Holds the number of rows currently loaded in the table. More...
 
bool printdebug
 Is true if debug information should be printed, false otherwise. More...
 

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 183 of file TBParser.h.

Constructor & Destructor Documentation

casa::TBXercesDOMParser::TBXercesDOMParser ( TableParams tp)

Constructor that takes the table parameters.

virtual casa::TBXercesDOMParser::~TBXercesDOMParser ( )
virtual

Member Function Documentation

Result casa::TBXercesDOMParser::parse ( casacore::String xml,
bool  parsedata = true 
)
virtual

Implements TBParser::parse().

The casacore::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: