Public Methods | |
Resource () | |
~Resource () | |
Resource | operator= (const Resource &r) |
Resource (const Resource &r) | |
Resource (const char *filename, const char *xpath, int iomode, int *status) | |
int | openFile (const char *filename, const char *xpath, int iomode, int *status) |
int | closeFile (int *status) |
int | getDescription (char *&desc, int *status) |
int | getID (char *&ID, int *status) |
int | getName (char *&name, int *status) |
int | getType (resource_type &value, int *status) |
int | getNumOfInfos (int &numOfElements, int *status) |
int | getInfo (Info &info, int index, int *status) |
int | getNumOfCoosys (int &numOfElements, int *status) |
int | getCoosys (Coosys &coosys, int index, int *status) |
int | getNumOfParams (int &numOfElements, int *status) |
int | getParam (Param ¶m, int index, int *status) |
int | getNumOfLinks (int &numOfElements, int *status) |
int | getLink (Link &link, int index, int *status) |
int | getNumOfTables (int &numOfElements, int *status) |
int | getTable (VTable &table, int index, int *status) |
int | getNumOfResources (int &numOfElements, int *status) |
int | getResource (Resource &resource, int index, int *status) |
A RESOURCE element contains description, list of 'Info' elements, list of 'Coosys' elements, list of 'Param' elements, list of 'Link' elements, list of 'Table' elements, and 'list' of Resource elements.
|
Default constructor |
|
Destructor |
|
Copy constructor. |
|
Constructs a 'Resource' from <RESOURCE> element from the given VOTABLE file, the xpath denotes the position of the resource element to be opened. Example - To read the first <RESOURCE> use "/RESOURCE[1]" in the xpath. To read a <RESOURCE> with ID as 'ycat' use "/RESOURCE[@ID='ycat']" in the xpath. Make sure that the xpath points to a single <RESOURCE> element, else VOERROR will be returned. Currently the parameter 'iomode' is ignored since all files are opened in 'readonly' mode. |
|
Closes the 'Resource' element. |
|
Get the 'Coosys' element, given the index. Index starts from 0. |
|
Get the 'description' of resource. |
|
Get the 'ID'. |
|
Get the 'Info' element, given the index. Index starts from 0. |
|
Get the 'Link' element, given the index. Index starts from 0. |
|
Get the 'name'. |
|
Get the number of 'Coosys' elements. |
|
Get the number of 'Info' elements. |
|
Get the number of 'Link' elements. |
|
Get the number of 'Param' elements. |
|
Get the number of 'Resource' elements. |
|
Get the number of 'VTable' elements. |
|
Get the 'Param' element, given the index. Index starts from 0. |
|
Get the 'Resource' element, given the index. Index starts from 0. |
|
Get the 'VTable' element, given the index. Index starts from 0. |
|
Get the 'type'. |
|
Opens a Resource element from the given VOTABLE file, the xpath denotes the position of the resource element to be opened. Example - To read the first <RESOURCE> use "/RESOURCE[1]" in the xpath. To read a <RESOURCE> with ID as 'ycat' use "/RESOURCE[@ID='ycat']" in the xpath. Note that xpath is case sensitive. Make sure that the xpath points to a single <RESOURCE> element, else VOERROR will be returned. Currently the parameter 'iomode' is ignored since all files are opened in 'readonly' mode. |
|
Assignment operator overloaded. |