casa
5.7.0-16
|
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. 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... | |
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 183 of file TBParser.h.
casa::TBXercesDOMParser::TBXercesDOMParser | ( | TableParams * | tp | ) |
Constructor that takes the table parameters.
|
virtual |
|
virtual |
Implements TBParser::parse().
The casacore::String is parsed into DOMElements and then the table information is parsed from the DOMElements.
Implements casa::TBParser.
|
private |
Second level parsing method that takes the TABLE element and parses the table out of it.
|
private |
Third level parsing method that takes the TABLEDATA element and parses the table data out of it.
|
private |
First level parsing method that takes the top-level element and parses it.