GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > RIM / V0-0-2

Constituent: rim_parser     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

xml.c File Reference

XML parser for the RIM pkg. More...

#include "RIM/rim.h"
#include "parser_state_p.h"
#include "error_p.h"
#include "AG_addr_s.h"
#include "AG_xml_tags_s.h"
#include "AG_map_tags_s.h"
#include "XLX/parse.h"
#include "XLX/util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Include dependency graph for xml.c:


Defines

#define INITIAL_STACK_LIMIT   8
 Size of the stack within the state structure on initialisation.

Functions

unsigned RIM_parse (RIM *rim, const char **filelist, unsigned filecount, unsigned verb)
 Parse a set of XML files and populate the RIM.
unsigned RIM_parseMap (RIM_map *map, const char **filelist, unsigned filecount, unsigned verb)
 Parse a set of XML files and set bits in the RIM_map.

Variables

static XLX_parent_tag lat
 Tag structure for the LAT element.
static XLX_basic_tag * docChild []
 Array of pointers to named structures that are children on the DOC (pseudo) element.
static XLX_parent_tag doc
 Tag structure for the (pseudo) element DOC.
static XLX_parent_tag mapTag
 Tag structure for the mapTag element.
static XLX_basic_tag * mapDocChild []
 Array of pointers to named structures that are children on the mapDoc (pseudo) element.
static XLX_parent_tag mapDoc
 Tag structure for the (pseudo) element mapDoc.

Detailed Description

XML parser for the RIM pkg.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

unsigned RIM_parse RIM rim,
const char **  filelist,
unsigned  filecount,
unsigned  verb
 

Parse a set of XML files and populate the RIM.

Parameters:
rim RIM object to populate from the XML files
filelist List of strings containing the names of XML files to parse
filecount Number of XML files to parse
verb 1 for verbose, 0 for quiet
Return values:
LATC_SUCCESS If all goes well
LATC_XML_PARSE If there is an error within the XLX parser

unsigned RIM_parseMap RIM_map map,
const char **  filelist,
unsigned  filecount,
unsigned  verb
 

Parse a set of XML files and set bits in the RIM_map.

Parameters:
map RIM_map to populate from the XML files
filelist List of strings containing the names of XML files to parse
filecount Number of XML files to parse
verb 1 for verbose, 0 for quiet
Return values:
RIM_SUCCESS If all goes well
RIM_XML_PARSE If there is an error within the XLX parser


Variable Documentation

XLX_parent_tag doc [static]
 

Initial value:

 {
  {"", XLX_PARENT, XLX_character_noop},
  XLX_NON_RECURSIVE,
  docChild,
  NULL,
  NULL
}
Tag structure for the (pseudo) element DOC.

XLX_basic_tag* docChild[] [static]
 

Initial value:

 {
  (XLX_basic_tag*)(&lat), 
  NULL
}
Array of pointers to named structures that are children on the DOC (pseudo) element.

XLX_parent_tag lat [static]
 

Initial value:

 {
  {"LATC_XML", XLX_PARENT, XLX_character_noop},
  XLX_NON_RECURSIVE,
  latChild,
  NULL,
  NULL
}
Tag structure for the LAT element.

XLX_parent_tag mapDoc [static]
 

Initial value:

 {
  {"", XLX_PARENT, XLX_character_noop},
  XLX_NON_RECURSIVE,
  mapDocChild,
  NULL,
  NULL
}
Tag structure for the (pseudo) element mapDoc.

XLX_basic_tag* mapDocChild[] [static]
 

Initial value:

 {
  (XLX_basic_tag*)(&mapTag), 
  NULL
}
Array of pointers to named structures that are children on the mapDoc (pseudo) element.

XLX_parent_tag mapTag [static]
 

Initial value:

 {
  {"LATC_MAP_XML", XLX_PARENT, XLX_character_noop},
  XLX_NON_RECURSIVE,
  mapChild,
  NULL,
  NULL
}
Tag structure for the mapTag element.


Generated on Thu Apr 13 23:41:33 2006 by  doxygen 1.4.4