GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QCFG / V0-0-1

Constituent: qcfg     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

xml.c File Reference

XML parser for the LATC pkg. More...

#include "xml.h"
#include "create.h"
#include "error.h"
#include "ctors_p.h"
#include "RIM/parser.h"
#include "PBS/MBA.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Include dependency graph for xml.c:


Functions

unsigned QCFG_parse (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 QCFG_parseMap (char **filelist, unsigned filecount, const char *outname, unsigned verb)
 Read XML describing a map of the LAT components and create the equivalent binary file.

Detailed Description

XML parser for the LATC pkg.

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

Function Documentation

unsigned QCFG_parse 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:
QCFG_SUCCESS If all goes well
QCFG_MEM_ALLOC If there is an error allocating memory
RIM_FILE_WRITE if one of the file write operations failed
RIM_FILE_OPEN if the file fails to open
RIM_FILE_CLOSE if the file close failed
RIM_XML_PARSE if there is an error parsing the XML

unsigned QCFG_parseMap char **  filelist,
unsigned  filecount,
const char *  outname,
unsigned  verb
 

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

Return values:
QCFG_SUCCESS if all goes well
QCFG_MEM_ALLOC If there is an error allocating memory
RIM_FILE_WRITE if writing to the file failed
RIM_FILE_OPEN if the file fails to open
RIM_FILE_CLOSE if the file close failed
RIM_XML_PARSE if there is an error parsing the XML


Generated on Fri Apr 14 00:29:45 2006 by  doxygen 1.4.4