00001
00015 #define NUM_ELEMENTS 25
00016
00017 #define TY_ROOT 0
00018 #define TY_VOTABLE 1
00019 #define TY_RESOURCE 2
00020 #define TY_FIELD 3
00021 #define TY_PARAM 4
00022 #define TY_INFO 5
00023 #define TY_TR 6
00024 #define TY_TD 7
00025 #define TY_TABLE 8
00026 #define TY_STREAM 9
00027 #define TY_FITS 10
00028 #define TY_GROUP 11
00029 #define TY_FIELDREF 12
00030 #define TY_PARAMREF 13
00031 #define TY_MIN 14
00032 #define TY_MAX 15
00033 #define TY_OPTION 16
00034 #define TY_VALUES 17
00035 #define TY_LINK 18
00036 #define TY_DATA 19
00037 #define TY_DESCRIPTION 20
00038 #define TY_TABLEDATA 21
00039 #define TY_BINARY 22
00040
00041 #define TY_COOSYS 23
00042 #define TY_DEFINITIONS 24
00043
00044
00045 #ifndef OK
00046 #define OK 0
00047 #endif
00048 #ifndef ERR
00049 #define ERR 1
00050 #endif
00051
00052
00053 #ifndef handle_t
00054 #define handle_t int
00055 #endif
00056
00057
00062 handle_t vot_openVOTABLE (char *arg);
00063 void vot_closeVOTABLE (handle_t vot);
00064
00065 handle_t vot_getRESOURCE (handle_t handle);
00066 handle_t vot_getTABLE (handle_t handle);
00067 handle_t vot_getFIELD (handle_t handle);
00068 handle_t vot_getDATA (handle_t handle);
00069 handle_t vot_getTABLEDATA (handle_t handle);
00070 handle_t vot_getTR (handle_t handle);
00071 handle_t vot_getTD (handle_t handle);
00072 handle_t vot_getBINARY (handle_t handle);
00073 handle_t vot_getFITS (handle_t handle);
00074 handle_t vot_getGROUP (handle_t handle);
00075 handle_t vot_getFIELDRef (handle_t handle);
00076 handle_t vot_getPARAMRef (handle_t handle);
00077 handle_t vot_getDESCRIPTION (handle_t handle);
00078 handle_t vot_getPARAM (handle_t handle);
00079 handle_t vot_getINFO (handle_t handle);
00080 handle_t vot_getSTREAM (handle_t handle);
00081 handle_t vot_getVALUES (handle_t handle);
00082 handle_t vot_getMIN (handle_t handle);
00083 handle_t vot_getMAX (handle_t handle);
00084 handle_t vot_getOPTION (handle_t handle);
00085 handle_t vot_getLINK (handle_t handle);
00086 handle_t vot_getCOOSYS (handle_t handle);
00087
00088 int vot_getDATAType (handle_t data_h);
00089 char *vot_getDATATypeString (handle_t data_h);
00090
00091
00092
00093 handle_t vot_newNode (handle_t parent, int type);
00094 void vot_freeNode (handle_t delete_me);
00095 void vot_attachNode (handle_t parent, handle_t new);
00096 void vot_deleteNode (handle_t element);
00097 handle_t vot_copyElement (handle_t src_h, handle_t parent_h);
00098
00099
00100
00101
00102
00103
00104 int vot_getNCols (handle_t tdata_h);
00105 int vot_getNRows (handle_t tdata_h);
00106 char *vot_getTableCell (handle_t tdata_h, int row, int col);
00107 int vot_getLength (handle_t elem_h);
00108 int vot_getNumberOf (handle_t elem_h, int type);
00109
00110 handle_t vot_findByAttr (handle_t parent, char *name, char *value);
00111 handle_t *vot_findInGroup (handle_t group, int type);
00112 handle_t vot_getNext (handle_t elem_h);
00113 handle_t vot_getSibling(handle_t elem_h);
00114 handle_t vot_getChild (handle_t elem_h);
00115 handle_t vot_getParent (handle_t elem_h);
00116 handle_t vot_getChildOfType (handle_t elem_h, int type);
00117 int vot_valueOf (handle_t elem_h);
00118 int vot_typeOf (handle_t elem_h);
00119
00120 int vot_setValue (handle_t elem_h, char *value);
00121 char *vot_getValue(handle_t elem_h);
00122 int vot_setAttr (handle_t elem_h, char *attr, char *value);
00123 char *vot_getAttr (handle_t elem_h, char *attr);
00124
00125 void vot_setWarnings (int value);
00126
00127
00128
00129
00130
00131
00132 void vot_writeVOTable (handle_t node, FILE *fd);
00133