GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EFC / V4-5-5 > iefc / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

EFR_key.h File Reference

Interface to the Event Filter/File Resolution Keys. More...


Typedefs

typedef enum _EFR_KEYTYPE_K EFR_KEYTYPE_K
 Typedef for struct _EFR_KEYTYPE_K.
typedef enum _EFR_KEYCMX_BRANCH_K EFR_KEYCMX_BRANCH_K
 Typedef for struct _EFR_KEYCMX_BRANCH_K.

Enumerations

enum  _EFR_KEYTYPE_K {
  EFR_KEYTYPE_K_NONE = -1,
  EFR_KEYTYPE_K_FMX = 0,
  EFR_KEYTYPE_K_CMX = 1
}
 The enumerates the 8 possible key types. More...
enum  _EFR_KEYCMX_BRANCH_K {
  EFR_KEYCMX_BRANCH_K_ILLEGAL = -3,
  EFR_KEYCMX_BRANCH_K_UNDEFINED = -2,
  EFR_KEYCMX_BRANCH_K_UNKNOWN = -1,
  EFR_KEYCMX_BRANCH_K_PROD = 0,
  EFR_KEYCMX_BRANCH_K_DEV = 1,
  EFR_KEYCMX_BRANCH_K_TEST = 2
}
 The enumerates the CMX branch typess. More...

Functions

unsigned int EFR_keyGet (struct _CDM_Database *cdb, unsigned char user)
 Returns the key associated with the file. This may be either an FMX or CMX style key, with the FMX key, if it exists, given the perference.
EFR_KEYTYPE_K EFR_keyTypeGet (unsigned int key)
 Query function to return the encoded key type.
unsigned int EFR_keyUserGet (unsigned int key)
 Query function to return the encoded user field.
EFR_KEYCMX_BRANCH_K EFR_keyCmxBranchGet (unsigned int key)
 Query function to return the branch type.
unsigned int EFR_keyCmxVersionGet (unsigned int key)
 Query function to return the version.
unsigned int EFR_keyFmxKeyGet (unsigned int key)
 Query function to return FMX key value.
static __inline unsigned int EFR__keyCmxMajorGet (unsigned int cmx_version)
 Extracts the CMX major version number from the specified cmx_version.
static __inline unsigned int EFR__keyCmxMinorGet (unsigned int cmx_version)
 Extracts the CMX minor version number from the specified cmx_version.
static __inline unsigned int EFR__keyCmxPatchGet (unsigned int cmx_version)
 Extracts the CMX patch version number from the specified cmx_version.


Detailed Description

Interface to the Event Filter/File Resolution Keys.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: EFR_key.h,v 1.1 2007/10/10 23:40:42 russell Exp $

Enumeration Type Documentation

The enumerates the CMX branch typess.

Enumerator:
EFR_KEYCMX_BRANCH_K_ILLEGAL  Attempt to get the branch from a non CMX type key
EFR_KEYCMX_BRANCH_K_UNDEFINED  The original queried file had no CMX as built information with it
EFR_KEYCMX_BRANCH_K_UNKNOWN  The branch returned was not one of PROD, DEV or TEST
EFR_KEYCMX_BRANCH_K_PROD  Production branch
EFR_KEYCMX_BRANCH_K_DEV  Development branch
EFR_KEYCMX_BRANCH_K_TEST  User test branch

The enumerates the 8 possible key types.

Enumerator:
EFR_KEYTYPE_K_NONE  NULL key
EFR_KEYTYPE_K_FMX  FMX key
EFR_KEYTYPE_K_CMX  CMX tag style key


Function Documentation

static __inline unsigned int EFR__keyCmxMajorGet ( unsigned int  cmx_version  )  [static]

Extracts the CMX major version number from the specified cmx_version.

Parameters:
cmx_version The packed cmx version value to use. This is generally gotten from the return value of EFR_keyCmxVersionGet.

static __inline unsigned int EFR__keyCmxMinorGet ( unsigned int  cmx_version  )  [static]

Extracts the CMX minor version number from the specified cmx_version.

Parameters:
cmx_version The packed cmx version value to use. This is generally gotten from the return value of EFR_keyCmxVersionGet.

static __inline unsigned int EFR__keyCmxPatchGet ( unsigned int  cmx_version  )  [static]

Extracts the CMX patch version number from the specified cmx_version.

Parameters:
cmx_version The packed cmx version value to use. This is generally gotten from the return value of EFR_keyCmxVersionGet.

EFR_KEYCMX_BRANCH_K EFR_keyCmxBranchGet ( unsigned int  key  ) 

unsigned int EFR_keyCmxVersionGet ( unsigned int  key  ) 

Query function to return the version.

Returns:
The packed version number
Parameters:
key The key to query
Warning:
This function is valid if and only this is a CMX key from the production branch. It is the user responsibility to verify this before calling this function.

References _EFR_key::gen, and _EFR_key::ui.

unsigned int EFR_keyFmxKeyGet ( unsigned int  key  ) 

Query function to return FMX key value.

Returns:
The FMX key value
Parameters:
key The key to query
Warning:
This function is valid if and only this is a FMX key. It is the user responsibility to verify this before calling this function.

References _EFR_key::fmx, and _EFR_key::ui.

unsigned int EFR_keyGet ( struct _CDM_Database *  cdb,
unsigned char  user 
)

Returns the key associated with the file. This may be either an FMX or CMX style key, with the FMX key, if it exists, given the perference.

Returns:
The key
Parameters:
cdb The CMX database to query for the key
user A small integer (typically less than 31, that will be associated with the key. This is meant to help resolves files of similar types that may reside in different directories

References cmxKeyGet(), EFR_KEYVAL_K_UNDEFINED, fmxKeyGet(), _EFR_key::gen, and _EFR_key::ui.

Referenced by construct_efc().

EFR_KEYTYPE_K EFR_keyTypeGet ( unsigned int  key  ) 

Query function to return the encoded key type.

Return values:
EFR_KEYTYPE_K_FMX 
EFR_KEYTYPE_K_CMX 
Parameters:
key The key to query

References EFR_KEYTYPE_K_NONE, _EFR_key::gen, and _EFR_key::ui.

unsigned int EFR_keyUserGet ( unsigned int  key  ) 

Query function to return the encoded user field.

Returns:
The user user field
Parameters:
key The key to query
Warning:
This function assumes the user has checked the check type for being valid, i.e. not EFR_KEYTYPE_K_NONE.

References _EFR_key::gen, and _EFR_key::ui.


Generated on Wed Jan 16 14:08:10 2013 by  doxygen 1.5.8