GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / V9-1-3 > latc_host / rhel4-32
#include <imm.h>
#include <stdio.h>
Functions | |
unsigned | LATC_createCfg (LATC_imm *imm, unsigned filter, const char *stub) |
Create a set of binary configuration files based on the contents of the imm, using lcm as the first in a sequence of file IDs. | |
unsigned | LATC_createFile (LATC_imm *imm, LATC_type type, const char *filename) |
Create a single binary configuration file containing the data of one component (or the default data). | |
unsigned | LATC_createMap (LATC_map *map, const char *filename) |
Write out the data of a LATC_map structure. | |
void | LATC_genxml (LATC_imm *imm, FILE *fp, unsigned noDflt) |
Generate XML source from the contents of the IMM. | |
void | LATC_report (LATC_imm *imm, FILE *fp, unsigned noDflt) |
Print a report of the contents of the IMM to the file. |
unsigned LATC_createCfg | ( | LATC_imm * | imm, | |
unsigned | filter, | |||
const char * | stub | |||
) |
Create a set of binary configuration files based on the contents of the imm, using lcm as the first in a sequence of file IDs.
imm | IMM structure used as the basis of the binary configuration | |
stub | Stub to use as a basis for the output filenames | |
filter | Bitmask of LAT component files to create |
LATC_SUCCESS | if all goes well | |
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 |
References LATC_createFile().
Referenced by LATC_parse().
unsigned LATC_createFile | ( | LATC_imm * | imm, | |
LATC_type | type, | |||
const char * | filename | |||
) |
Create a single binary configuration file containing the data of one component (or the default data).
imm | IMM structure used as the basis of the binary configuration | |
type | Component type to write out | |
filename | Name to use for this file |
LATC_SUCCESS | if all goes well | |
LATC_BADFOPEN | if the file cannot be opened. | |
LATC_BADWRITE | if one of the file write operations failed | |
LATC_BADCLOSE | if the file fails to close | |
LATC_NOWRITE | if the selected type is not written seperately (not reported) | |
LATC_NOSPECAL | if the selected type has no data specified (not reported) |
References countMap(), file_create(), file_finish(), and file_write().
Referenced by LATC_createCfg().
unsigned LATC_createMap | ( | LATC_map * | map, | |
const char * | filename | |||
) |
Write out the data of a LATC_map structure.
map | Pointer to the LATC_map whose data should be written to file | |
filename | Name of the destination file |
LATC_SUCCESS | if all goes well | |
LATC_BADFOPEN | if the file cannot be opened. | |
LATC_BADWRITE | if one of the file write operations failed | |
LATC_BADCLOSE | if the file fails to close |
References file_create(), file_finish(), file_write(), and sizeofMap().
Referenced by LATC_parseMap().
void LATC_genxml | ( | LATC_imm * | imm, | |
FILE * | fp, | |||
unsigned | noDflt | |||
) |
Generate XML source from the contents of the IMM.
imm | Pointer to an IMM | |
fp | Pointer to destination of the report | |
noDflt | True if default values not present |
void LATC_report | ( | LATC_imm * | imm, | |
FILE * | fp, | |||
unsigned | noDflt | |||
) |
Print a report of the contents of the IMM to the file.
imm | Pointer to an IMM | |
fp | Pointer to destination of the report | |
noDflt | True if default values not present |
References CptDescription::width.