GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> XFC / V0-3-0 > ddfc / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

DFC_dbConfigure.c File Reference

Uses an EDS_DB_schema to configure the Diagnostic Filter (DGN) filter. More...

#include <XFC/DFC.h>
#include <XFC/DFC_status.h>
#include <DFC_def.h>
#include <DFC_resultDef.h>
#include <EFC/EFC.h>
#include <EFC/EFC_std.h>
#include <EDS_DB/EDS_DB_schema.h>

Functions

static int dfc_sizeof (const EFC_DB_Schema *schema, void *prm)
 Computes the size needed to hold configuration defined by the specified schema.
static const
EDS_fwHandlerServicesX1 * 
dfc_construct (EFC *efc, unsigned int handler_id, const EFC_DB_Schema *schema, unsigned int schema_key, LSD_sdiWriteCbp *write, EDS_fw *edsFw)
 Constructs the configuration for the specified set of parameters.
const
EDS_DB_HandlerConstructServices * 
DFC_constructServicesGet (unsigned int prm)
 Returns a pointer to the services vector.

Variables

static const EFC_definition Dfc_Definition
 The defining parameters for this filter.


Detailed Description

Uses an EDS_DB_schema to configure the Diagnostic Filter (DGN) filter.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: DFC_dbConfigure.c,v 1.5 2012/01/04 20:36:41 russell Exp $

Function Documentation

static const EDS_fwHandlerServicesX1 * dfc_construct ( EFC *  efc,
unsigned int  handler_id,
const EFC_DB_Schema *  schema,
unsigned int  schema_key,
LSD_sdiWriteCbp *  write,
EDS_fw *  edsFw 
) [static]

Constructs the configuration for the specified set of parameters.

Parameters:
efc The controlling Event Filter's handle
handler_id Unique and static identifier for this handler. This value is used as the basis of many associate identifiers, such as datagrams.
schema The database schema
schema_key The handler's configuration key (likely FMX key)
write The optional, user supplied parameter is used to convey the datagram write routine.
edsFw The controlling EDS framework's handle

References Dfc_Definition, DFC_fwNeeds(), and DFC_fwObjects().

Referenced by DFC_constructServicesGet().

const EDS_DB_HandlerConstructServices DFC_constructServicesGet ( unsigned int  prm  ) 

Returns a pointer to the services vector.

Returns:
A pointer to the services vector
This is the seed point for an EDS_DB, i.e. the database contains a string with the name of this routine. Using the CMX_lookupSymbol method (or some other equivalent method) the string is translated into the address of this routine.
The driving program is then expected to use this address to fetch a vector of 2 routines
  1. A size routine, to determine the amount of storage this filter needs to define its control and configuration block
  2. A construct routine, to fill in the control and configuration block.

References dfc_construct(), and dfc_sizeof().

static int dfc_sizeof ( const EFC_DB_Schema *  schema,
void *  prm 
) [static]

Computes the size needed to hold configuration defined by the specified schema.

Returns:
The size, in bytes,
Parameters:
schema The defining schema
prm An optional, modifying parameter. Unused in this routine.

References Dfc_Definition.

Referenced by DFC_constructServicesGet().


Variable Documentation

EFC_definition Dfc_Definition [static]

Initial value:

{
  
  {
    (EFC_servicesConstruct)DFC_cfgSchemaCompile,
                                             
    (EFC_servicesFilter)  DFC_filter,        
    (EFC_servicesCfgSet)  DFC_cfgSet,        
    (EFC_servicesDestruct)NULL,              
    (EFC_servicesReport)  NULL               
  },


  
  {
    sizeof (DFC),             
    sizeof (DFC_cfg),         
    sizeof (DFC_result)       
  },


  
  {
      DFC_STATUS_M_INFO | DFC_STATUS_M_PASSES | DFC_STATUS_M_VETOES,
      DFC_STATUS_M_VETOES,
      DFC_STATUS_M_PASSES,
      DFC_STATUS_M_INFO
  }
}
The defining parameters for this filter.

Referenced by dfc_construct(), and dfc_sizeof().


Generated on Wed Jan 4 14:17:33 2012 by  doxygen 1.5.8