GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> RIM / dev > rim_ground / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

RIM_parser.c File Reference

XML parser for the RIM package. More...

#include <RIM_p.h>
#include <RIM_ground_p.h>
#include <RIM_number.ic>
#include <RIM_AG_init_p.h>
#include <RIM_AG_xml_tags_s.h>
#include <RIM_AG_map_tags_s.h>
#include <RIM/RIM_ground.h>
#include <RIM/RIM_msgs.h>
#include <XLX/XLX.h>
#include <MSG/MSG_pubdefs.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

Functions

unsigned RIM_parse (RIM *rim, void *regmap, const char *const *filelist, int nFile, int verb)
 Parse a set of XML files and populate the RIM.
unsigned RIM_parseMap (RIM_map *map, const char *const *filelist, int nFile, int verb)
 Parse a set of XML files and set bits in the RIM map.
RIM_tag ** RIM_cfgTags (void)
 Get the address of the configuration tag tree.
RIM_tag ** RIM_mapTags (void)
 Get the address of the ignore map tag tree.


Detailed Description

XML parser for the RIM package.

Author:
James Swain & Owen Saxton
$Id: RIM_parser.c,v 1.10 2011/09/27 23:02:34 saxton Exp $

Function Documentation

RIM_tag** RIM_cfgTags ( void   ) 

Get the address of the configuration tag tree.

Returns:
The address of the configuration tag tree

RIM_tag** RIM_mapTags ( void   ) 

Get the address of the ignore map tag tree.

Returns:
The address of the ignore map tag tree

Referenced by RIM_genxml().

unsigned RIM_parse ( RIM rim,
void *  regmap,
const char *const *  filelist,
int  nFile,
int  verb 
)

Parse a set of XML files and populate the RIM.

Parameters:
rim RIM object to populate from the XML files
regmap Register map to fill from the XML files
filelist List of strings containing the names of XML files to parse
nFile Number of XML files to parse
verb 1 for verbose, 0 for quiet
Return values:
RIM_SUCCESS Success
RIM_XMLPARSE The XLX parser detected an error
RIM_XMLVLERR A string had an invalid value

References RIM_setRegDflts().

unsigned RIM_parseMap ( RIM_map map,
const char *const *  filelist,
int  nFile,
int  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
nFile Number of XML files to parse
verb 1 for verbose, 0 for quiet
Return values:
RIM_SUCCESS Success
RIM_XMLPARSE The XLX parser detected an error
RIM_XMLVLERR A string had an invalid value


Generated on Tue Sep 27 16:06:31 2011 by  doxygen 1.5.8