GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSD / dev > qsu / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QFR_cdm.c File Reference

Convenience routine to CDM facility. More...

#include <QSD/QFR_cdm.h>
#include <QSD/QFR_file.h>
#include <LSE/LFR_refdef.h>
#include <LSE/LFR_key.h>
#include <CDM/CDM_pubdefs.h>

Functions

struct _CDM_Database * QFR_cdmDbLoad (const QFR_cdmTemplate *template, QFR_fileCtx *ctx, unsigned int key, char *name, unsigned int name_size)
 Utility routine to construct a fully resolve file name to a database, then load it.
unsigned int QFR_cdmConstantsLoad (const QFR_cdmTemplate *template, QFR_fileCtx *qfr, unsigned int key, QFR_cdmConstructor ctor, void *ctor_prm, char *name, unsigned int name_size)
 Utility routine to construct a fully resolve file name to a database, then load it.


Detailed Description

Convenience routine to CDM facility.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QFR_cdm.c,v 1.2 2011/03/26 21:06:58 russell Exp $

Function Documentation

unsigned int QFR_cdmConstantsLoad ( const QFR_cdmTemplate template,
QFR_fileCtx qfr,
unsigned int  key,
QFR_cdmConstructor  ctor,
void *  ctor_prm,
char *  name,
unsigned int  name_size 
)

Utility routine to construct a fully resolve file name to a database, then load it.

Returns:
On success, the checksum 0 on failure
Parameters:
template The template containing the list of directory paths and the file name.
qfr The file resolution context.
key The key used to find the specific file
ctor The construct, this will be called back with the found database and the constants
ctor_prm Arbibrary parameter passed to the ctor routine
name Name buffer, if non-NULL, filled in with the resolved file name. The name is NUL-terminated
name_size The size, in byte, of the name buffer.

References QFR_cdmDbLoad().

struct _CDM_Database QFR_cdmDbLoad ( const QFR_cdmTemplate template,
QFR_fileCtx ctx,
unsigned int  key,
char *  name,
unsigned int  name_size 
) [read]

Utility routine to construct a fully resolve file name to a database, then load it.

Returns:
A handle to the loaded database, or NULL on failure
Parameters:
ctx The file resolution context.
key The key used to find the specific file
template The template containing the list of directory paths and the file name.
name Name buffer, if non-NULL, filled in with the resolved file name. The name is NUL-terminated
name_size The size, in bytes, of the name buffer.

Referenced by QFR_cdmConstantsLoad().


Generated on Sat Mar 26 14:08:24 2011 by  doxygen 1.5.8