Go to the source code of this file.
Defines | |
| #define | NUM_ELEMENTS 25 |
| #define | TY_ROOT 0 |
| #define | TY_VOTABLE 1 |
| #define | TY_RESOURCE 2 |
| #define | TY_FIELD 3 |
| #define | TY_PARAM 4 |
| #define | TY_INFO 5 |
| #define | TY_TR 6 |
| #define | TY_TD 7 |
| #define | TY_TABLE 8 |
| #define | TY_STREAM 9 |
| #define | TY_FITS 10 |
| #define | TY_GROUP 11 |
| #define | TY_FIELDREF 12 |
| #define | TY_PARAMREF 13 |
| #define | TY_MIN 14 |
| #define | TY_MAX 15 |
| #define | TY_OPTION 16 |
| #define | TY_VALUES 17 |
| #define | TY_LINK 18 |
| #define | TY_DATA 19 |
| #define | TY_DESCRIPTION 20 |
| #define | TY_TABLEDATA 21 |
| #define | TY_BINARY 22 |
| #define | TY_COOSYS 23 |
| #define | TY_DEFINITIONS 24 |
| #define | OK 0 |
| #define | ERR 1 |
| #define | handle_t int |
Functions | |
| handle_t | vot_openVOTABLE (char *arg) |
| Parse a VOTable and return a handle to it. | |
| void | vot_closeVOTABLE (handle_t vot) |
| Destroy the root node and all of it's children. | |
| handle_t | vot_getRESOURCE (handle_t handle) |
| Gets the RESOURCE node from the parent handle. | |
| handle_t | vot_getTABLE (handle_t handle) |
| Gets the TABLE node from the parent handle. | |
| handle_t | vot_getFIELD (handle_t handle) |
| Gets the FIELD node from the parent handle. | |
| handle_t | vot_getDATA (handle_t handle) |
| Gets the DATA node from the parent handle. | |
| handle_t | vot_getTABLEDATA (handle_t handle) |
| Gets the TABLEDATA node from the parent handle. | |
| handle_t | vot_getTR (handle_t handle) |
| Gets the TR node from the parent handle. | |
| handle_t | vot_getTD (handle_t handle) |
| Gets the TD node from the parent handle. | |
| handle_t | vot_getBINARY (handle_t handle) |
| Gets the BINARY node from the parent handle. | |
| handle_t | vot_getFITS (handle_t handle) |
| Gets the FITS node from the parent handle. | |
| handle_t | vot_getGROUP (handle_t handle) |
| Gets the GROUP node from the parent handle. | |
| handle_t | vot_getFIELDRef (handle_t handle) |
| Gets the FIELDref node from the parent handle. | |
| handle_t | vot_getPARAMRef (handle_t handle) |
| Gets the PARAMRef node from the parent handle. | |
| handle_t | vot_getDESCRIPTION (handle_t handle) |
| Gets the DESCRIPTION node from the parent handle. | |
| handle_t | vot_getPARAM (handle_t handle) |
| Gets the PARAM node from the parent handle. | |
| handle_t | vot_getINFO (handle_t handle) |
| Gets the INFO node from the parent handle. | |
| handle_t | vot_getSTREAM (handle_t handle) |
| Gets the STREAM node from the parent handle. | |
| handle_t | vot_getVALUES (handle_t handle) |
| Gets the VALUES node from the parent handle. | |
| handle_t | vot_getMIN (handle_t handle) |
| Gets the MIN node from the parent handle. | |
| handle_t | vot_getMAX (handle_t handle) |
| Gets the MAX node from the parent handle. | |
| handle_t | vot_getOPTION (handle_t handle) |
| Gets the OPTION node from the parent handle. | |
| handle_t | vot_getLINK (handle_t handle) |
| Gets the LINK node from the parent handle. | |
| handle_t | vot_getCOOSYS (handle_t handle) |
| Gets the COOSYS node from the parent handle. | |
| int | vot_getDATAType (handle_t data_h) |
| char * | vot_getDATATypeString (handle_t data_h) |
| Returns the type of the DATA element. | |
| handle_t | vot_newNode (handle_t parent, int type) |
| Creates a new blank unlinked node. | |
| void | vot_freeNode (handle_t delete_me) |
| Destroys the node and all of it's children. | |
| void | vot_attachNode (handle_t parent, handle_t new) |
| Adds a node as a child of parent. | |
| void | vot_deleteNode (handle_t element) |
| Destroys the node and all of it's children. | |
| handle_t | vot_copyElement (handle_t src_h, handle_t parent_h) |
| Adds a node as a child of parent. | |
| int | vot_getNCols (handle_t tdata_h) |
| Return the nuber of columns in the table structure. | |
| int | vot_getNRows (handle_t tdata_h) |
| Return the nuber of columns in the table structure. | |
| char * | vot_getTableCell (handle_t tdata_h, int row, int col) |
| Return the nuber of columns in the structure. | |
| int | vot_getLength (handle_t elem_h) |
| Return the number of sibling Elements of the same type. | |
| int | vot_getNumberOf (handle_t elem_h, int type) |
| Return the number of sibling Elements of the type. | |
| handle_t | vot_findByAttr (handle_t parent, char *name, char *value) |
| Get a handle to an Element with the requested attribute. | |
| handle_t * | vot_findInGroup (handle_t group, int type) |
| Return a handle array of the requested Element type. | |
| handle_t | vot_getNext (handle_t elem_h) |
| Return a handle_t of the next Element of the same type. | |
| handle_t | vot_getSibling (handle_t elem_h) |
| Return a handle_t of the next Element. | |
| handle_t | vot_getChild (handle_t elem_h) |
| Return a handle_t of the child Element. | |
| handle_t | vot_getParent (handle_t elem_h) |
| Return the handle of the parent Element. | |
| handle_t | vot_getChildOfType (handle_t elem_h, int type) |
| Get the handle of the next Element of the same type. | |
| int | vot_valueOf (handle_t elem_h) |
| Return type of the Element. | |
| int | vot_typeOf (handle_t elem_h) |
| Return type of the Element. | |
| int | vot_setValue (handle_t elem_h, char *value) |
| Set the Value for the ELEMENT. | |
| char * | vot_getValue (handle_t elem_h) |
| Get the Value for the ELEMENT. | |
| int | vot_setAttr (handle_t elem_h, char *attr, char *value) |
| Set the attribute for the Element. | |
| char * | vot_getAttr (handle_t elem_h, char *attr) |
| Return the attribute for the Element. | |
| void | vot_setWarnings (int value) |
| Set the warning level. | |
| void | vot_writeVOTable (handle_t node, FILE *fd) |
| Write the VOTable to the file descriptor. | |
VOTPARSE.H -- Public procedure declarations for the VOTable interface.
| #define NUM_ELEMENTS 25 |
VOTable element types
| void vot_attachNode | ( | handle_t | parent, | |
| handle_t | new | |||
| ) |
| void vot_closeVOTABLE | ( | handle_t | vot | ) |
Destroy the root node and all of it's children.
vot_closeVOTABLE -- Destroy the root node and all of it's children.
| vot | A handle to the Element that you want deleted |
| handle_t vot_copyElement | ( | handle_t | src_h, | |
| handle_t | parent_h | |||
| ) |
Adds a node as a child of parent.
vot_copyElement -- Adds a node as a child of parent.
| src_h | A handle to the Element to copy | |
| parent_h | A handle to the Elements parent |
| void vot_deleteNode | ( | handle_t | element | ) |
Destroys the node and all of it's children.
vot_deleteNode -- Destroys the node and all of it's children.
| element | A handle to the Element that you want deleted |
| handle_t vot_findByAttr | ( | handle_t | parent, | |
| char * | name, | |||
| char * | value | |||
| ) |
| handle_t* vot_findInGroup | ( | handle_t | group, | |
| int | type | |||
| ) |
| void vot_freeNode | ( | handle_t | node | ) |
Destroys the node and all of it's children.
vot_freeNode -- Destroys the node and all of it's children.
| node | A handle to the Element that you want deleted |
| char* vot_getAttr | ( | handle_t | elem_h, | |
| char * | attr | |||
| ) |
| handle_t vot_getBINARY | ( | handle_t | handle | ) |
Gets the BINARY node from the parent handle.
vot_getBINARY -- Gets the BINARY node from the parent handle
| handle | Parent handle containing a BINARY |
| handle_t vot_getChild | ( | handle_t | elem_h | ) |
| handle_t vot_getChildOfType | ( | handle_t | elem_h, | |
| int | type | |||
| ) |
| handle_t vot_getCOOSYS | ( | handle_t | handle | ) |
Gets the COOSYS node from the parent handle.
vot_getCOOSYS -- Gets the COOSYS node from the parent handle
| handle | Parent handle containing a COOSYS |
| handle_t vot_getDATA | ( | handle_t | handle | ) |
Gets the DATA node from the parent handle.
vot_getDATA -- Gets the DATA node from the parent handle
| handle | Parent handle containing a DATA |
| char* vot_getDATATypeString | ( | handle_t | data_h | ) |
Returns the type of the DATA element.
Returns the type of the DATA element as a string.
vot_getDATAType -- Returns the type of the DATA element.
| data_h | A handle_t to a DATA |
| data_h | A handle_t to a DATA |
| handle_t vot_getDESCRIPTION | ( | handle_t | handle | ) |
Gets the DESCRIPTION node from the parent handle.
vot_getDESCRIPTION -- Gets the DESCRIPTION node from the parent handle
| handle | Parent handle containing a DESCRIPTION |
| handle_t vot_getFIELD | ( | handle_t | handle | ) |
Gets the FIELD node from the parent handle.
vot_getFIELD -- Gets the FIELD node from the parent handle
| handle | Parent handle containing a FIELD |
| handle_t vot_getFIELDRef | ( | handle_t | handle | ) |
Gets the FIELDref node from the parent handle.
vot_getFIELDref -- Gets the FIELDref node from the parent handle
| handle | Parent handle containing a FIELDref |
| handle_t vot_getFITS | ( | handle_t | handle | ) |
Gets the FITS node from the parent handle.
vot_getFITS -- Gets the FITS node from the parent handle
| handle | Parent handle containing a FITS |
| handle_t vot_getGROUP | ( | handle_t | handle | ) |
Gets the GROUP node from the parent handle.
vot_getGROUP -- Gets the GROUP node from the parent handle
| handle | Parent handle containing a GROUP |
| handle_t vot_getINFO | ( | handle_t | handle | ) |
Gets the INFO node from the parent handle.
vot_getINFO -- Gets the INFO node from the parent handle
| handle | Parent handle containing a INFO |
| int vot_getLength | ( | handle_t | elem_h | ) |
Return the number of sibling Elements of the same type.
vot_getLength -- Return the number of sibling Elements of the same type.
| elem_h | A handle_t the Element |
| handle_t vot_getLINK | ( | handle_t | handle | ) |
Gets the LINK node from the parent handle.
vot_getLINK -- Gets the LINK node from the parent handle
| handle | Parent handle containing a LINK |
| handle_t vot_getMAX | ( | handle_t | handle | ) |
Gets the MAX node from the parent handle.
vot_getMAX -- Gets the MAX node from the parent handle
| handle | Parent handle containing a MAX |
| handle_t vot_getMIN | ( | handle_t | handle | ) |
Gets the MIN node from the parent handle.
vot_getMIN -- Gets the MIN node from the parent handle
| handle | Parent handle containing a MIN |
| int vot_getNCols | ( | handle_t | tdata_h | ) |
Return the nuber of columns in the table structure.
************************************************************************** Utility methods vot_getNCols -- Return the nuber of columns in the table structure.
| tdata_h | A handle_t to a TABLEDATA |
| handle_t vot_getNext | ( | handle_t | elem_h | ) |
| int vot_getNRows | ( | handle_t | tdata_h | ) |
Return the nuber of columns in the table structure.
vot_getNRows -- Return the nuber of columns in the table structure.
| tdata_h | A handle_t to a TABLEDATA |
| int vot_getNumberOf | ( | handle_t | elem_h, | |
| int | type | |||
| ) |
Return the number of sibling Elements of the type.
vot_getNumberOf -- Return the number of sibling Elements of the type.
| elem_h | A handle_t the Element | |
| type | An int of the type of element you wish to count |
| handle_t vot_getOPTION | ( | handle_t | handle | ) |
Gets the OPTION node from the parent handle.
vot_getOPTION -- Gets the OPTION node from the parent handle
| handle | Parent handle containing a OPTION |
| handle_t vot_getPARAM | ( | handle_t | handle | ) |
Gets the PARAM node from the parent handle.
vot_getPARAM -- Gets the PARAM node from the parent handle
| handle | Parent handle containing a PARAM |
| handle_t vot_getPARAMRef | ( | handle_t | handle | ) |
Gets the PARAMRef node from the parent handle.
vot_getPARAMRef -- Gets the PARAMref node from the parent handle
| handle | Parent handle containing a PARAMRef |
| handle_t vot_getParent | ( | handle_t | elem_h | ) |
| handle_t vot_getRESOURCE | ( | handle_t | handle | ) |
Gets the RESOURCE node from the parent handle.
vot_getRESOURCE -- Gets the RESOURCE node from the parent handle
| handle | Parent handle containing a RESOURCE |
| handle_t vot_getSibling | ( | handle_t | elem_h | ) |
| handle_t vot_getSTREAM | ( | handle_t | handle | ) |
Gets the STREAM node from the parent handle.
vot_getSTREAM -- Gets the STREAM node from the parent handle
| handle | Parent handle containing a STREAM |
| handle_t vot_getTABLE | ( | handle_t | handle | ) |
Gets the TABLE node from the parent handle.
vot_getTABLE -- Gets the TABLE node from the parent handle
| handle | Parent handle containing a TABLE |
| char* vot_getTableCell | ( | handle_t | tdata_h, | |
| int | row, | |||
| int | col | |||
| ) |
Return the nuber of columns in the structure.
vot_getTableCell -- Return the nuber of columns in the structure.
| tdata_h | A handle_t to a TABLEDATA | |
| row | An int for a row | |
| col | An int for a col |
| handle_t vot_getTABLEDATA | ( | handle_t | handle | ) |
Gets the TABLEDATA node from the parent handle.
vot_getTABLEDATA -- Gets the TABLEDATA node from the parent handle
| handle | Parent handle containing a TABLEDATA |
| handle_t vot_getTD | ( | handle_t | handle | ) |
Gets the TD node from the parent handle.
vot_getTD -- Gets the TD node from the parent handle
| handle | Parent handle containing a TD |
| handle_t vot_getTR | ( | handle_t | handle | ) |
Gets the TR node from the parent handle.
vot_getTR -- Gets the TR node from the parent handle
| handle | Parent handle containing a TR |
| char* vot_getValue | ( | handle_t | elem_h | ) |
Get the Value for the ELEMENT.
vot_getValue -- Get the Value for the ELEMENT.
| elem_h | A handle_t the ELEMENT |
| handle_t vot_getVALUES | ( | handle_t | handle | ) |
Gets the VALUES node from the parent handle.
vot_getVALUES -- Gets the VALUES node from the parent handle
| handle | Parent handle containing a VALUES |
| handle_t vot_newNode | ( | handle_t | parent, | |
| int | type | |||
| ) |
Creates a new blank unlinked node.
vot_newNode -- Creates a new blank unlinked node.
| parent | A handle to the Element that you want to add a node to | |
| type | The type of node you wish to create |
| handle_t vot_openVOTABLE | ( | char * | arg | ) |
Parse a VOTable and return a handle to it.
************************************************************************* Public LIBVOTABLE interface.
vot_openVOTABLE -- Parse a VOTable and return a handle to it
| arg | The source of the table |
| int vot_setAttr | ( | handle_t | elem_h, | |
| char * | attr, | |||
| char * | value | |||
| ) |
| int vot_setValue | ( | handle_t | elem_h, | |
| char * | value | |||
| ) |
Set the Value for the ELEMENT.
vot_setValue -- Set the Value for the ELEMENT.
| elem_h | A handle_t the ELEMENT | |
| value | A string holding the value |
| void vot_setWarnings | ( | int | value | ) |
Set the warning level.
vot_setWarnings -- Set the warning level.
| value | Warning level |
| int vot_typeOf | ( | handle_t | elem_h | ) |
| int vot_valueOf | ( | handle_t | elem_h | ) |
| void vot_writeVOTable | ( | handle_t | node, | |
| FILE * | fd | |||
| ) |
Write the VOTable to the file descriptor.
vot_writeVOTable -- Write the VOTable to the file descriptor.
| node | A handle to an Element that you to print | |
| fd | The file descriptor to send teh output to |
1.5.9