GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / dev > latc_host_wb / sun-gcc
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) |
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.
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 |
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 | |||
) |
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 |
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.