GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSE / V1-5-2

Constituent: qse     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QFR_file.c File Reference

Facilty to resolve and manage dynamically mapped files. More...

#include "QSE/QFR_file.h"
#include "LSE/LFR_key.h"
#include "FMX/FMX_pubdefs.h"
#include "MSG/MSG_macdefs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Include dependency graph for QFR_file.c:


Data Structures

struct  _QFR_fileCtx
 The context for the file resolution facility. More...

Typedefs

typedef _QFR_fileCtx QFR_fileCtx

Functions

static const char * translate (const char *facility, const char *area)
 Translates the environment variable whose name looks like <facility>_<area>.
static unsigned int size (const char *stem, const char *facility, const char *area)
 Gets the size, in bytes of the file stem.
int QFR_fileCtxSizeof (const QFR_fileCfg *cfg)
 Returns the size in bytes need to hold the file resolution context.
void * QFR_fileCtxConstruct (QFR_fileCtx *ctx, const QFR_fileCfg *cfg)
 Constructs the file resolution translation context.
int QFR_fileResolve (QFR_fileCtx *ctx, unsigned int key, const char *dirName, const char *fileName, char *name, unsigned int nameLen)

Variables

static const QFR_fileCfg CfgDefault = { "QFR", { NULL, NULL, NULL } }

Detailed Description

Facilty to resolve and manage dynamically mapped files.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: QFR_file.c,v 1.1 2006/11/10 22:35:55 russell Exp $

Function Documentation

void* QFR_fileCtxConstruct QFR_fileCtx ctx,
const QFR_fileCfg cfg
 

Constructs the file resolution translation context.

Returns:
Pointer to the next location
Parameters:
ctx The context to construct
cfg The configuration

int QFR_fileCtxSizeof const QFR_fileCfg cfg  ) 
 

Returns the size in bytes need to hold the file resolution context.

Parameters:
cfg The file resolution configuration

static unsigned int size const char *  stem,
const char *  facility,
const char *  area
[static]
 

Gets the size, in bytes of the file stem.

Returns:
The size, in bytes, of the file stem
Parameters:
stem User specified stem
facility If stem is NULL, then an environment variable of the form <facility><area> is constructed and a translation on it is attempted.
area The area (_F_PROD, _F_DEV, _F_TEST)

static const char * translate const char *  facility,
const char *  area
[static]
 

Translates the environment variable whose name looks like <facility>_<area>.

Returns:
Pointer to the translated environment variable


Generated on Tue Nov 21 01:30:20 2006 by  doxygen 1.4.4