Public Member Functions | |
VOTParser () | |
~VOTParser () | |
int | getNextResourceOrTable (int &elementType) |
int | nextResource (void) |
int | nextTable (void) |
int | nextRow (void) |
int | getTable (VOTTable &table) |
int | getResource (VOTResource &resource) |
int | getVOTableMetaData (VOTVOTable &votableMetaData) |
int | getRow (VOTRow &row) |
int | init (const char *filename) |
int | init (void) |
int | close (void) |
Static Public Attributes | |
const int | VOTABLE_TABLE = 1 |
const int | VOTABLE_RESOURCE = 2 |
|
Default Constructor |
|
Destructor |
|
Close parser. This should be called for cleanup.
|
|
Get next element that is either a TABLE or a RESOURCE. Set elementType to 1 to indicate RESOURCE, 2 to indicate TABLE, if either RESOURCE or TABLE are found.
|
|
Get RESOURCE data if the parser currently points to a RESOURCE. Calling getResource() without calling nextResource() will result in a VOT_ERROR.
|
|
Get Row data if the parser currently points to a Row. Calling getRow() without calling nextRow() will result in a VOT_ERROR.
|
|
Get TABLE meta-data if the parser currently points to a TABLE. Calling getTable() without calling nextTable() will result in a VOT_ERROR. Note that the table does not contain data, it only contains meta-data. To get actual table data nextRow() and getRow() should be called.
|
|
Get VOTable meta-data if the parser currently points to a VOTABLE element. There is no nextXXX() corresponding to getVOTableMetaData(). You can directly call getVOTableMetaData() to get the VOTable meta-data. But you need to call this method before you call any nextXXX() function.
|
|
Initialize parser when the input is from standard input stream. Must be called before parsing is initiated.
|
|
Initialize parser when the input is from a given file or URL. Must be called before parsing is initiated.
|
|
Go to next RESOURCE in the VOTable. Calling this method will cause the parser to go to the next RESOURCE. This RESOURCE may be nested within or may be at the same nested depth as the previous RESOURCE.
|
|
Go to next ROW in the TABLE. Calling this method will cause the parser to go to the next ROW within the TABLE. It will not cross the TABLE boundary.
|
|
Go to next TABLE in the VOTable. Calling this method will cause the parser to go to the next TABLE without stopping at any RESOURCE boundaries.
|
|
Indicates type - RESOURCE element in the VOTABLE. |
|
Indicates type - TABLE element in the VOTABLE. |