|
NSCL DDAS
1.0
Support for XIA DDAS at the NSCL
|
#include <SetFile.h>
Static Public Member Functions | |
| static VarOffsetArray | readVarFile (const char *filename) |
| static VarMapByOffset | createVarOffsetMap (const VarOffsetArray &offsets) |
| static VarMapByName | createVarNameMap (const VarOffsetArray &offsets) |
| static std::pair< unsigned, uint32_t * > | readSetFile (const char *filename) |
| static void | writeSetFile (const char *filename, unsigned nLongs, uint32_t *pVars) |
| static void | freeSetFile (uint32_t *pVars) |
| static UnpackedSetFile | populateSetFileArray (unsigned nLongs, const uint32_t *pVars, const VarOffsetArray &map) |
| static SetFileByName | populateSetFileMap (unsigned nLong, const uint32_t *pVars, const VarOffsetArray &map) |
| static SetFileByName | populateSetFileMap (const UnpackedSetFile &vars) |
A bunch of static methods that can manipulate set files:
|
static |
createVarNameMap Takes an array of offset descriptors from a var file and tossses them up into a map that's indexed by variable name.
| offsets | - the offset array descriptor. |
|
static |
createVaroffsetMap Create a map organized by offset values from the array of descriptors created by readVarFile.
| offsets | - the array of offset descriptors. |
|
static |
freeSetFile Free the setfile data gotten by readSetFile
p - pointer to data returned from readSetFile
|
static |
populateSetFileArray Given the contents of a setfile and its variable offset definitions, returns a vector of set file descriptor/contents.
| nLongs | - number of longs in the set file data. |
| pVars | - Buffer contaning the set file data. |
| map | - vars definition. Assumed sorted by offset. |
|
static |
populateSetFileMap Populates a set file map indexed by item name.
| nLong | - Number of longs in the map. |
| pVars | - Pointer to the variables in the set file buffer. |
| map | - Variable mapping array. |
|
static |
populateSetFileMap Overload to populate the map given an unpacked setfile:
| vars | - the unpacked set file. |
|
static |
readSetFile Reads the set file in to a soup of storage.
| filename | - path to the .set file. |
|
static |
readVarFile Reads a Var file and provides descriptors for the variables it defines relative to the start of either the DSP var memory in the boards or relative to the file itself.
| filename | - Pointer to the filename to open. |
|
static |
writeSetFile Writes a set file back out to disk.
| filename | - name of the file to write to. |
| nLongs | - Number of longs in the set file. |
| pVars | - Pointer to the setfile data in memory. |
1.8.8