GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / dev > latc_host / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

XML.h File Reference

XML parsing and writing functions. More...


Functions

unsigned LATC_parse (const char **filelist, unsigned filecount, const char *stub, unsigned filter, unsigned verb)
 Parse a set of XML files and spit out the binary configuration files.
unsigned LATC_parseMap (const char **filelist, unsigned filecount, const char *outname, unsigned verb)


Detailed Description

XML parsing and writing functions.

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

Function Documentation

unsigned LATC_parse ( const char **  filelist,
unsigned  filecount,
const char *  stub,
unsigned  filter,
unsigned  verb 
)

Parse a set of XML files and spit out the binary configuration files.

Parameters:
filelist List of strings containing the names of XML files to parse
filecount Number of XML files to parse
stub Filename stub to use a basis for output filenames
filter Bit mask of the components to create output files for
verb 1 for verbose, 0 for quiet
Return values:
LATC_SUCCESS If all goes well
LATC_BADALLOC If there is an error allocating memory for the IMM structure
LATC_BADFOPEN if the configuration master file or any of the configuration binary files cannot be opened.
LATC_BADWRITE If one of the file write operations failed
LATC_BADCLOSE If one of the files failed to close
XLX_FOPEN If one of the XML files cannot be opened
XLX_MEMERR If there is an error creating a parser control structure
XLX_FREAD If there is an error reading an XML file
XLX_PARSE If there is an error parsing the XML

References LATC_state::addr, doc, LATC_state::excptn, INITIAL_STACK_LIMIT, LATC_state::latc, LATC_createCfg(), readField(), and LATC_state::xState.

unsigned LATC_parseMap ( const char **  filelist,
unsigned  filecount,
const char *  outname,
unsigned  verb 
)

Parameters:
filelist List of strings containing the names of XML files to parse
filecount Number of XML files to parse
outname Output filename
verb 1 for verbose, 0 for quiet
Return values:
LATC_SUCCESS If all goes well
LATC_BADALLOC If there is an error allocating memory for the map structure
LATC_BADFOPEN if the output file cannot be opened
LATC_BADWRITE If the file write operation failed
LATC_BADCLOSE If the output file failed to close
XLX_FOPEN If one of the XML files cannot be opened
XLX_MEMERR If there is an error creating a parser control structure
XLX_FREAD If there is an error reading an XML file
XLX_PARSE If there is an error parsing the XML

References LATC_state::addr, LATC_state::excptn, INITIAL_STACK_LIMIT, LATC_state::latc, LATC_createMap(), mapChar(), mapDoc, and LATC_state::xState.


Generated on Thu Apr 7 17:31:52 2011 by  doxygen 1.5.8