votAttribute.c File Reference

(Internal) Methods to manage XML attributes. More...

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

Functions

int vot_attrSet (AttrBlock *ablock, char *name, char *value)
 Set/Create an attributes (internal method).
char * vot_attrGet (AttrBlock *ablock, char *name)
 Get an attribute's value (internal method).
char * vot_attrXML (AttrBlock *ablock)
 Get the attributes for an XML tag (internal method).


Detailed Description

(Internal) Methods to manage XML attributes.

VOTATTRIBUTE.C -- (Internal) Methods to manage XML attributes.

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

Function Documentation

char * vot_attrGet ( AttrBlock *  ablock,
char *  name 
)

Get an attribute's value (internal method).

vot_attrGet -- Get an attribute's value (internal method).

Parameters:
*ablock An AttrBlock to insert these attributes
*name A string that hold the name of an attribute
Returns:
Value of the attribute or NULL

status vot_attrSet ( AttrBlock *  ablock,
char *  name,
char *  value 
)

Set/Create an attributes (internal method).

vot_attrSet -- Set/Create an attributes (internal method).

Parameters:
ablock An AttrBlock to insert these attributes.
name A string that hold the name of an attribute.
value A string that hold the value of an attribute.
Returns:
The status of the request. 1 Success, 0=FAIL.
Warning:
If an attribute has no name/value, this will not create it.

char * vot_attrXML ( AttrBlock *  ablock  ) 

Get the attributes for an XML tag (internal method).

vot_attrXML -- Get the attributes for an XML tag (internal method).

Parameters:
*ablock An AttrBlock to insert these attributes
Returns:
A string containing the attributes for an XML tag


Generated on Wed May 5 16:32:13 2010 for libVOTable by  doxygen 1.5.9