votExpatCB.c File Reference

(Private) Expat parser XML callback methods More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <expat.h>
#include <unistd.h>
#include <ctype.h>
#include "votParseP.h"
#include "votParse.h"

Functions

void vot_startElement (void *user, const char *name, const char **atts)
 CB whenever a start tag is seen (private method).
void vot_endElement (void *user, const char *name)
 CB whenever an end tag is seen (private method).
void vot_charData (void *user, const XML_Char *s, int len)
 Handle non-element character strings (private method).
void vot_startCData (void *user)
 Handle the start of CDATA strings (private method).
void vot_endCData (void *user)
 Handle the end of CDATA strings (private method).

Variables

Stackelement_stack


Detailed Description

(Private) Expat parser XML callback methods

VOTEXPATCB.C -- (Private) Expat XML Parser callback methods.

Author:
Mike Fitzpatrick and Eric Timmermann
Date:
8/03/09

Function Documentation

vot_charData ( void *  user,
const XML_Char *  s,
int  len 
)

Handle non-element character strings (private method).

vot_charData -- Handle non-element character strings (private method)

Parameters:
user User data (not used)
s content string
len length of string
Returns:
nothing

vot_endCData ( void *  user  ) 

Handle the end of CDATA strings (private method).

vot_endCData -- Handle the end of CDATA strings (private method)

Parameters:
user User data (not used)
Returns:
nothing

vot_endElement ( void *  user,
const char *  name 
)

CB whenever an end tag is seen (private method).

vot_endElement -- CB whenever an end tag is seen (private method)

Parameters:
user User data (not used)
name The name in the XML tag
Returns:
nothing

vot_startCData ( void *  user  ) 

Handle the start of CDATA strings (private method).

vot_startCData -- Handle the start of CDATA strings (private method)

Parameters:
user User data (not used)
Returns:
nothing

vot_startElement ( void *  user,
const char *  name,
const char **  atts 
)

CB whenever a start tag is seen (private method).

vot_startElement -- CB whenever a start tag is seen (private method)

Parameters:
user User data (not used)
name The name in the XML tag.
atts An array of attributes.
Returns:
nothing


Variable Documentation

************************************************************************* Public Interface

vot = vot_openVOTABLE (filename|str|NULL) vot_closeVOTABLE (vot)

res = vot_getRESOURCE (vot|res) tab = vot_getTABLE (res) field = vot_getFIELD (tab)

data = vot_getDATA (tab)

tdata = vot_getTABLEDATA (data) // data elements tr = vot_getTR (tdata) td = vot_getTD (tr) bin = vot_getBINARY (data) bin = vot_getBINARY2 (data) fits = vot_getFITS (data)

group = vot_getGROUP (vot|res|tab|group) fldref = vot_getFIELDRef (group) parref = vot_getPARAMRef (group)

desc = vot_getDESCRIPTION (handle) param = vot_getPARAM (handle) info = vot_getINFO (handle) stream = vot_getSTREAM (bin|fits)

val = vot_getVALUES (field|param|info) min = vot_getMIN (val) max = vot_getMAX (val) opt = vot_getOPTION (val)

link = vot_getLINK (res|info|param|field|table)

sys = vot_getCOOSYS (vot) // Compatability

h = vot_newRESOURCE (handle_t parent_h) h = vot_newTABLE (handle_t parent_h) h = vot_newFIELD (handle_t parent_h) h = vot_newDATA (handle_t parent_h) h = vot_newTABLEDATA (handle_t parent_h) h = vot_newTR (handle_t parent_h) h = vot_newTD (handle_t parent_h) h = vot_newBINARY (handle_t parent_h) h = vot_newBINARY2 (handle_t parent_h) h = vot_newFITS (handle_t parent_h) h = vot_newGROUP (handle_t parent_h) h = vot_newFIELDRef (handle_t parent_h) h = vot_newPARAMRef (handle_t parent_h) h = vot_newDESCRIPTION (handle_t parent_h) h = vot_newPARAM (handle_t parent_h) h = vot_newINFO (handle_t parent_h) h = vot_newSTREAM (handle_t parent_h) h = vot_newVALUES (handle_t parent_h) h = vot_newMIN (handle_t parent_h) h = vot_newMAX (handle_t parent_h) h = vot_newOPTION (handle_t parent_h) h = vot_newLINK (handle_t parent_h) h = vot_newCOOSYS (handle_t parent_h)

handle = vot_newNode (parent, type) vot_freeNode (node) vot_deleteNode (node) vot_attachNode (parent, new) handle = vot_copyElement (handle_t source_h, handle_t parent_h)

val = vot_getValue (handle) stat = vot_setValue (handle, value)

attr = vot_getAttr (handle, attr) stat = vot_setAttr (handle, attr, value)

type = vot_getDATAType (data) // Utilities typeStr = vot_getDATATypeString (data)

nc = vot_getNCols (tdata_h) nr = vot_getNRows (tdata_h) val = vot_getTableCell (tdata_h, row, col) stat = vot_sortTable (tdata_h, col, string_sort, sort_order)

len = vot_getLength (elem_h) N = vot_getNumberOf (elem_h, type)

col = vot_colByName (tab_h, name, alt) col = vot_colByUCD (tab_h, name, alt) col = vot_colByID (tab_h, name, alt)

handle = vot_findByAttr (parent, name, value) handle *vot_findInGroup (group, type) handle = vot_getNext (handle) handle = vot_getSibling (handle) handle = vot_getChild (handle) handle = vot_getParent (handle) handle = vot_getChildOfType (handle, int type)

int = vot_valueOf (handle) type = vot_typeOf (handle) vot_setWarnings (value)

vot_writeVOTable (handle, char *fname, int indent) vot_writeHTML (handle, char *fname) vot_writeSHTML (handle, char *fname) vot_writeFITS (handle, char *fname) vot_writeASV (handle, char *fname, int hdr) vot_writeBSV (handle, char *fname, int hdr) vot_writeCSV (handle, char *fname, int hdr) vot_writeTSV (handle, char *fname, int hdr) vot_writeDelimited (handle, char *fname, char delim, int hdr)


Generated on Wed Feb 27 21:10:08 2013 for libVOTable by  doxygen 1.5.9