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

Constituent: qcfg     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

create.c File Reference

Functions that create binary configuration files. More...

#include "create.h"
#include "fo_p.h"
#include "error.h"
#include "PBS/MBA.h"
#include "RIM/lrd.h"
#include <string.h>

Include dependency graph for create.c:


Functions

unsigned createFile (RIM *rim, RIM_type type, const char *filename)
 Create a single binary configuration file containing the data of one component (or the default data).
unsigned QCFG_createMap (RIM_map *map, const char *filename)
 Write out the data of a LATC_map structure.
unsigned QCFG_create (RIM *rim, unsigned filter, const char *stub)
 Creates a set of binary configuration files based on the contents of the imm, using lcm as the first in a sequence of file IDs.

Detailed Description

Functions that create binary configuration files.

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

Function Documentation

unsigned createFile RIM *  rim,
RIM_type  type,
const char *  filename
 

Create a single binary configuration file containing the data of one component (or the default data).

Parameters:
rim RIM structure used as the basis of the binary configuration
type Component type to write out
filename Name to use for this file
Return values:
RIM_SUCCESS if all goes well
RIM_FILE_WRITE if one of the file write operations failed
RIM_MAP_NONE if the selected type is not written seperately
RIM_CPT_NONE if the selected type has not data specified

unsigned QCFG_create RIM *  rim,
unsigned  filter,
const char *  stub
 

Creates a set of binary configuration files based on the contents of the imm, using lcm as the first in a sequence of file IDs.

Parameters:
rim RIMstructure 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
Return values:
RIM_SUCCESS if all goes well
RIM_FILE_WRITE if one of the file write operations failed
RIM_FILE_CLOSE if one of the files failed to close

unsigned QCFG_createMap RIM_map *  map,
const char *  filename
 

Write out the data of a LATC_map structure.

Parameters:
map Pointer to the LATC_map whose data should be written to file
filename Name of the destination file
Return values:
RIM_SUCCESS if all goes well
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


Generated on Wed May 3 23:13:39 2006 by  doxygen 1.4.4