GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QCFG / V1-1-3 > qcfg / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QCFG_xml.c File Reference

XML parser for the QCFG package. More...

#include <QCFG_p.h>
#include <QCFG/QCFG.h>
#include <QCFG/QCFG_msgs.h>
#include <RIM/RIM_ground.h>
#include <MSG/MSG_pubdefs.h>
#include <PBS/MBA.h>

Functions

unsigned QCFG_parse (const char *const *filelist, int nFile, const char *stub, unsigned int fMask, int verb)
 Parse a set of XML files and create the binary configuration files.
unsigned QCFG_parseMap (const char *const *filelist, int nFile, const char *outname, int verb)
 Read XML describing a map of the LAT components and create the equivalent binary file.


Detailed Description

XML parser for the QCFG package.

Author:
James Swain & Owen Saxton
$Id: QCFG_xml.c,v 1.7 2011/03/29 21:47:53 saxton Exp $

Function Documentation

unsigned QCFG_parse ( const char *const *  filelist,
int  nFile,
const char *  stub,
unsigned int  fMask,
int  verb 
)

Parse a set of XML files and create the binary configuration files.

Parameters:
filelist List of strings containing the names of XML files to parse
nFile Number of XML files to parse
stub Filename stub to use a basis for output filenames
fMask Bit mask of the components for which to create output files
verb 1 for verbose, 0 for quiet
Return values:
QCFG_SUCCESS If all goes well
QCFG_BADALLOC If there is an error allocating memory
QCFG_BADWRITE if one of the file write operations failed
QCFG_BADOPEN if the file fails to open
QCFG_BADCLOSE if the file close failed
QCFG_XMLPARSE if there is an error parsing the XML

References QCFG_create(), QCFG_genTypeMasks(), and QCFG_newRIM().

unsigned QCFG_parseMap ( const char *const *  filelist,
int  nFile,
const char *  outname,
int  verb 
)

Read XML describing a map of the LAT components and create the equivalent binary file.

Parameters:
filelist List of strings containing the names of XML files to parse
nFile Number of XML files to parse
outname Name of the output file
verb 1 for verbose, 0 for quiet
Return values:
QCFG_SUCCESS if all goes well
QCFG_BADALLOC If there is an error allocating memory
QCFG_BADWRITE if writing to the file failed
QCFG_BADOPEN if the file fails to open
QCFG_BADCLOSE if the file close failed
QCFG_XMLPARSE if there is an error parsing the XML

References QCFG_createMap(), and QCFG_newRIMmap().


Generated on Wed Nov 21 22:35:53 2012 by  doxygen 1.5.8