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
consume.c File Reference
File read and write functions. More...
#include "consume.h"
#include "fi_p.h"
#include "error.h"
#include "RIM/rim.h"
#include <fcntl.h>
#include <unistd.h>
Include dependency graph for consume.c:
|
Functions |
unsigned | QCFG_consumeMap (RIM_map *map, const char *filename) |
| Read map data into the map structure.
|
unsigned | QCFG_consume (RIM *rim, char **filelist, int nfiles) |
| Reads a configuration, as described by the configuration master file cfgName, into the latc structure.
|
Detailed Description
File read and write functions.
- Author:
- James Swain -- jswain@slac.stanford.edu
Function Documentation
unsigned QCFG_consume |
( |
RIM * |
rim, |
|
|
char ** |
filelist, |
|
|
int |
nfiles |
|
) |
|
|
|
Reads a configuration, as described by the configuration master file cfgName, into the latc structure.
- Parameters:
-
| rim | Pointer to the RIM to repopulate with the configuration information |
| filelist | List of binary configuration files |
| nfiles | Number of binary configuration files |
|
unsigned QCFG_consumeMap |
( |
RIM_map * |
map, |
|
|
const char * |
filename |
|
) |
|
|
|
Read map data into the map structure.
- Parameters:
-
| map | Map structure to populate from file |
| filename | Name of the binary map file to consume |
- Return values:
-
| QCFG_SUCCESS | if all goes well |
| RIM_FILE_OPEN | if the fid, or any of the names the configuration master file contains, does not match a valid file. |
| RIM_FILE_READ | if an error occures whilst the file is being read |
|
Generated on Wed May 3 23:13:34 2006 by
1.4.4