GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSE / V2-0-1

Constituent: qseprint     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QSE_printDvr.h File Reference

Interface to the generic event printing routines. More...

#include "LSF/LSF_scan.h"
#include "QSE/QSE_evt.h"

Include dependency graph for QSE_printDvr.h:

This graph shows which files directly or indirectly include this file:


Data Structures

struct  _QSE_printDvrStatsGbl
 Global counts of datagrams, contributions and records. More...
struct  _QSE_printDvrStatsDgm
 Statistics of this datagram, contributions and records. More...
struct  _QSE_printDvrStatsCtb
 Statistics of this contributor, records. More...
struct  _QSE_printDvrStats
 Statistics at the global, datagram, contributor and record level. More...

Typedefs

typedef _QSE_printDvrStatsGbl QSE_printDvrStatsGbl
 Typedef for struct QSE_printDvrStatsGbl.
typedef _QSE_printDvrStatsDgm QSE_printDvrStatsDgm
 Typedef for struct QSE_printCtxStatsDgm.
typedef _QSE_printDvrStatsCtb QSE_printDvrStatsCtb
 Typedef for struct QSE_printDvrStatsCtb.
typedef _QSE_printDvrStats QSE_printDvrStats
 Typedef for struct _QSE_printDvrStats.
typedef unsigned int(* QSE_printDvrDgm )(void *context, const LSF_datagram *dgm, void *prm)
 Callback signature for user provided datagram handler.
typedef unsigned int(* QSE_printDvrCtb )(void *context, const LSF_contribution *ctb, void *prm)
 Callback signature for user provided context handler.
typedef unsigned int(* QSE_printDvrRec )(void *context, const LSF_record *rec, void *prm)
 Callback signature for user provided record handler.
typedef enum _QSE_PRINTDVR_FATE_K QSE_PRINTDVR_FATE_K
 Typedef for enum _QSE_PRINTDVR_FATE_K.

Enumerations

enum  _QSE_PRINTDVR_FATE_K {
  QSE_PRINTDVR_FATE_K_CONTINUE = 0,
  QSE_PRINTDVR_FATE_K_STOP = 1
}
 Fate returned by the print driver callback routine to determine whether more events are processed or not.

Functions

unsigned int QSE_printDvrSizeof (void *ctx)
 Returns the size, in bytes of a QSE_printDvr structure.
QSE_printDvrQSE_printDvrConstruct (QSE_printDvr *dvr, unsigned int options, const QSE_update *upd_tbl, void *upd_prm, QSE_printDvrDgm dgm_rtn, QSE_printDvrCtb ctb_rtn, QSE_printDvrRec rec_rtn, void *usr_prm)
 Constructs/initializes the print context control block.
LSF_scanContributionHandler QSE_printDvrDatagram (QSE_printDvr *dvr, const LSF_datagram *datgram)
 Prints the header of the specified datagram.
void QSE_printDvrDestruct (QSE_printDvr *dvr)
 Frees any resources garnered during the contruction phase.
const QSE_printDvrStatsQSE_printDvrStatsLocate (QSE_printDvr *dvr)
 Retrieves a pointer to the statistics.
void QSE_printDvrStatsClear (QSE_printDvr *dvr)
 Clears the print driver statistics.

Detailed Description

Interface to the generic event printing routines.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: QSE_printDvr.h,v 1.5 2008/04/01 22:15:03 russell Exp $

Typedef Documentation

unsigned int int(* QSE_printDvrCtb)(void *context, const LSF_contribution *ctb, void *prm)
 

Callback signature for user provided context handler.

Return values:
QSE_PRINTDVR_FATE_K_QUIT 
QSE_PRINTDVR_FATE_K_CONTINUE 
Parameters:
context The update context
ctb The datagram contribution
prm User provided parameter, used to dynamically select decoding options.

unsigned int int(* QSE_printDvrDgm)(void *context, const LSF_datagram *dgm, void *prm)
 

Callback signature for user provided datagram handler.

Return values:
QSE_PRINTDVR_FATE_K_QUIT 
QSE_PRINTDVR_FATE_K_CONTINUE 
Parameters:
context The update context
dgm The datagram
prm User provided parameter

unsigned int(* QSE_printDvrRec)(void *context, const LSF_record *record, void *prm)
 

Callback signature for user provided record handler.

Return values:
QSE_PRINTDVR_FATE_K_QUIT 
QSE_PRINTDVR_FATE_K_CONTINUE 
Parameters:
context The update context
record The event record to decode
prm User provided parameter, used to dynamically select decoding options.


Function Documentation

QSE_printDvr* QSE_printDvrConstruct QSE_printDvr dvr,
unsigned int  options,
const QSE_update upd_tbl,
void *  upd_prm,
QSE_printDvrDgm  dgm_rtn,
QSE_printDvrCtb  ctb_rtn,
QSE_printDvrRec  rec_rtn,
void *  usr_prm
 

Constructs/initializes the print context control block.

Returns:
Pointer to the construct print driver context
Parameters:
dvr The print context to construct/initialize, if this is NULL, a print context will be allocated using malloc.
options An options word, currently unused, specify as 0
upd_tbl The table of event updating routines
upd_prm The update routines' parameter
dgm_rtn Routine to handle datagrams
ctb_rtn Routine to handle contributions
rec_rtn Routine to handle the records
usr_prm Parameter passed to the datagram, contribution and record handling routines.

LSF_scanContributionHandler QSE_printDvrDatagram QSE_printDvr dvr,
const LSF_datagram *  dgm
 

Prints the header of the specified datagram.

Return values:
The contribution level handler (routine + parameter)
Parameters:
dvr Print context parameter
dgm The datagram to print

void QSE_printDvrDestruct QSE_printDvr dvr  ) 
 

Frees any resources garnered during the contruction phase.

Parameters:
dvr The print context to destruct

unsigned int QSE_printDvrSizeof void *  prm  ) 
 

Returns the size, in bytes of a QSE_printDvr structure.

Returns:
The size, in bytes of a QSE_printDvr structure
Parameters:
prm Arbitrary user parameter, unused.

void QSE_printDvrStatsClear QSE_printDvr dvr  ) 
 

Clears the print driver statistics.

Parameters:
dvr Print context parameter

const QSE_printDvrStats* QSE_printDvrStatsLocate QSE_printDvr dvr  ) 
 

Retrieves a pointer to the statistics.

Returns:
A readonly pointer to the statistics
Parameters:
dvr Print context parameter


Generated on Wed Jun 25 01:20:10 2008 by  doxygen 1.4.4