GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > XLX / V9-0-2
Constituent: parser     Tag: linux-gcc
This graph shows which files directly or indirectly include this file:
Data Structures | |
struct | _XLX_basic_tag |
Structure descibing a basic XML tag with a name and a pointer to a function used to parse PCDATA. More... | |
struct | _XLX_parent_tag |
Tag structure specifying the possible contents of this tag and any additional actions to be performed when the tag is entered. More... | |
struct | _XLX_stack |
Structure to hold stack control information. More... | |
struct | _XLX_state |
Current state of the parsing - stack pointing to current element and address of leaf on the configuration tree. More... | |
Typedefs | |
typedef _XLX_state | XLX_state |
Forward declaration of the state structure. | |
typedef void(* | XLX_pDoctype )(XLX_state *state, const char *type, const char *sysId, const char *pubId, int intSubset) |
Pointer to function called to process a doctype declaration. | |
typedef void(* | XLX_pChar )(XLX_state *state, const char *data, int leng) |
Pointer to function called to perform unique actions on character data. | |
typedef void(* | XLX_pEnter )(XLX_state *state, const char **attr) |
Pointer to function called to perform additional (attribute parsing) actions on entry to a tag. | |
typedef void(* | XLX_pExit )(XLX_state *state) |
Pointer to function called to perform additional actions on exit from a tag. | |
typedef void(* | XLX_pDelete )(void *user) |
Pointer to function to use to destroy elements on the stack. | |
typedef _XLX_basic_tag | XLX_basic_tag |
Structure descibing a basic XML tag with a name and a pointer to a function used to parse PCDATA. | |
typedef _XLX_parent_tag | XLX_parent_tag |
Tag structure specifying the possible contents of this tag and any additional actions to be performed when the tag is entered. | |
typedef _XLX_stack | XLX_stack |
Structure to hold stack control information. | |
Enumerations | |
enum | xlxType { XLX_BASIC = 0, XLX_PARENT = 1, N_XTYPES = 2 } |
Enumeration used to extend the types of tag available. | |
enum | xlxSelf { XLX_NON_RECURSIVE = 0, XLX_RECURSIVE = 1 } |
Enumeration used to indicate if the tag can contain itself. | |
Functions | |
void | XLX_attrError (XLX_state *state, const char *func, const char *name) |
Report missing attribute error. | |
void | XLX_attrValError (XLX_state *state, const char *func, const char *name) |
Report invalid attribute value error. | |
void | XLX_character_noop (XLX_state *state, const char *element, int len) |
No-op character element handler. | |
void | XLX_character_tag (XLX_state *state, const char *element, int len) |
Handle a character element inside a parent tag by delegating the work to the first child. | |
void | XLX_destroyStack (XLX_stack *stack, XLX_pDelete dFn) |
Free the memory allocated to the stack and its elements. | |
void | XLX_dispFileName (XLX_state *state, const char *func) |
Display the name of the current file being parsed. | |
void | XLX_dump (XLX_stack *stack) |
Print out the stack information. | |
void | XLX_endStack (XLX_stack *stack) |
Free the memory allocated to the stack. | |
void | XLX_enter_noop (XLX_state *state, const char **attribute) |
No-op enter element handler. | |
void | XLX_exit_noop (XLX_state *state) |
No-op exit element handler. | |
int | XLX_getAttribute (const char **attribute, const char *name, int *value) |
Find a named attribute in an attribute list. | |
int | XLX_initStack (XLX_stack *stack, unsigned int limit) |
Initialise a stack by allocating memory to hold the contents and setting limit and used. | |
int | XLX_initState (XLX_state *state, unsigned int stackLimit, void *stackSeed, XLX_pDoctype doctype, XLX_pEnter enter, XLX_pExit exit, XLX_pChar character, int verbose) |
Initialise the state of the parser. | |
int | XLX_ischar (const char *string, unsigned int len) |
Test a string to see if it is a valid register wide character element. | |
int | XLX_isEnabled (const char **attribute, int *enabled) |
Reads the attribute list and sets enabled accordingly. | |
int | XLX_parse (const char *filename, XLX_state *pState) |
Parse an XML file. | |
void * | XLX_peek (XLX_stack *stack) |
Look at the item on the top of the stack without removing it. | |
void * | XLX_pop (XLX_stack *stack) |
Remove and return the top item on the stack. | |
int | XLX_push (XLX_stack *stack, void *ptr) |
Put a new item on the top of the stack and increment the counter, doubling the size of the stack if the stack is already full. | |
int | XLX_strtoi (const char *string, unsigned int len, int *value) |
Convert a string to a signed 32-bit integer. | |
int | XLX_strtoll (const char *string, unsigned int len, long long *value) |
Convert a string to a signed 64-bit integer. | |
int | XLX_strtou (const char *string, unsigned int len, unsigned int *value) |
Convert a string to an unsigned 32-bit integer. | |
int | XLX_strtoull (const char *string, unsigned int len, unsigned long long *value) |
Convert a string to an unsigned 64-bit integer. | |
void | XLX_valError (XLX_state *state, const char *func, const char *string, unsigned int len) |
Report value string to be in error. |
|
Report missing attribute error. This routine displays the name of the missing attribute, along with the line number in and the name of the file being parsed.
|
|
Report invalid attribute value error. This routine displays the name of the attribute, along with the line number in and the name of the file being parsed.
|
|
No-op character element handler.
|
|
Handle a character element inside a parent tag by delegating the work to the first child. If there are valid characters in the character element then the first child of the current tag is pushed onto the stack and then XLX_character is called to handle the character parsing. After the parsing is complete the child is popped off the stack.
|
|
Free the memory allocated to the stack and its elements.
|
|
Display the name of the current file being parsed. This routine is used when reporting errors during the parsing.
|
|
Print out the stack information.
|
|
Free the memory allocated to the stack.
|
|
No-op enter element handler.
|
|
No-op exit element handler.
|
|
Find a named attribute in an attribute list. This routine looks for the attribute in the attribute list and returns its associated value (signed decimal or hexadecimal string) converted to an integer.
|
|
Initialise a stack by allocating memory to hold the contents and setting limit and used.
|
|
Initialise the state of the parser.
|
|
Test a string to see if it is a valid register wide character element. Checks that the string has valid characters after any leading whitespace and before the start of the next tag.
|
|
Reads the attribute list and sets enabled accordingly.
|
|
Parse an XML file.
|
|
Look at the item on the top of the stack without removing it.
|
|
Remove and return the top item on the stack.
|
|
Put a new item on the top of the stack and increment the counter, doubling the size of the stack if the stack is already full.
|
|
Convert a string to a signed 32-bit integer.
|
|
Convert a string to a signed 64-bit integer.
|
|
Convert a string to an unsigned 32-bit integer.
|
|
Convert a string to an unsigned 64-bit integer.
|
|
Report value string to be in error. This routine displays the contents of the string, along with the line number in and the name of the file being parsed.
|