#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "votParseP.h"
#include "votParse.h"
Defines | |
#define | outstr(s) strcat(XML_out,s); |
#define | outattr(a, s) {outstr(a);outstr(s);outstr("\"");} |
Functions | |
int | vot_elemType (Element *e) |
Get the integer value (ID) of the Element (private method). | |
char * | vot_elemName (Element *e) |
Get the name of the Element (private method). | |
int | vot_eType (char *name) |
Get the integer value (ID) of the name (private method). | |
char * | vot_elemXMLEnd (Element *e) |
Build a string of the ending XML Tag (private method). | |
char * | vot_elemXML (Element *e) |
Builds a string of the opening XML Tag (private method). | |
Element * | vot_newElem (unsigned int type) |
Allocate a new structure of the given type (private method). | |
Variables | |
struct { | |
int type | |
char * name | |
} | elemTypes [] |
struct { | |
int type | |
char * req | |
char * opt | |
} | elemAttrs [] |
VOTELEMENT.C -- (Private) Method to manage XML elements.
char * vot_elemName | ( | Element * | e | ) |
int vot_elemType | ( | Element * | e | ) |
char * vot_elemXML | ( | Element * | e | ) |
Builds a string of the opening XML Tag (private method).
vot_elemXML -- Builds a string of the opening XML Tag (private method)
*e | A pointer to an Element |
char * vot_elemXMLEnd | ( | Element * | e | ) |
Build a string of the ending XML Tag (private method).
vot_elemXMLEnd -- Build a string of the ending XML Tag (private method)
*e | A pointer to an Element |
int vot_eType | ( | char * | name | ) |
Get the integer value (ID) of the name (private method).
vot_eType -- Get the integer value (ID) of the name (private method).
name | Name of the desired type |
Element * vot_newElem | ( | unsigned int | type | ) |
struct { ... } elemAttrs[] |
Definition of Required and Optional attributes of VOTable elements.
char* name |
element type
char* opt |
required attrs
char* req |
element type