GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSSP / V1-0-0

Constituent: qssp     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QSSP_ctx.c File Reference

Implementation of the routines handling the data structures common to all statistics datagrams. More...

#include "QSSP/QSSP_ctx.h"
#include "QSSP_efsCtx.h"
#include "QSP/QFCP_cache.h"
#include "QSP/QSP_templates.h"
#include "QSD/QFC_cache.h"
#include "QSD/QFR_file.h"
#include "QSD/QFC_member.h"
#include "LSF/LSF.h"

Include dependency graph for QSSP_ctx.c:


Typedefs

typedef void *(* UnpackCtx )(QSSP_ctx *qssp, const QSSP_efsCtxBdy *bdy)
 Callback signature to unpack the statistics context.

Functions

static __inline void qssp_unpack_did (QSD_ctxDid *did, const LSE_did *src)
 Unpacks the did context.
static __inline void qssp_unpack_ctx_v0 (QSSP_ctx *ctx, const QSSP_efsCtxBdyV0 *v0)
 Unpacks version 0 of the context.
static __inline void qssp_unpack_ctx_v1 (QSSP_ctx *ctx, const QSSP_efsCtxBdyV1 *v1)
 Unpacks version 1 of the context.
static __inline void qssp_unpack_ctx_v2 (QSSP_ctx *ctx, const QSSP_efsCtxBdyV2 *v2)
 Unpacks version 2 of the context.
void QSSP_ctxConstruct (QSSP_ctx *qssp, QFCP_cache *cache)
 Construct the QSSP context.
const LSF_contribution * QSSP_ctxUpdateAtDatagram (QSSP_ctx *qssp, const LSF_contribution *ctb, unsigned int hid)
 Updates the context for the datagram's contributions.

Detailed Description

Implementation of the routines handling the data structures common to all statistics datagrams.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: QSSP_ctx.c,v 1.1 2008/06/10 22:30:00 russell Exp $

Typedef Documentation

typedef void(* UnpackCtx)(QSSP_ctx *qssp, const QSSP_efsCtxBdy *bdy)
 

Callback signature to unpack the statistics context.

Parameters:
qssp The destination context block to receive the unpacked dat
bdy The source context block


Function Documentation

void QSSP_ctxConstruct QSSP_ctx qssp,
QFCP_cache *  cache
 

Construct the QSSP context.

Parameters:
qssp The QSSP context to construct
cache The (initialized) file cache

const LSF_contribution * QSSP_ctxUpdateAtDatagram QSSP_ctx qssp,
const LSF_contribution *  ctb,
unsigned int  hid
 

Updates the context for the datagram's contributions.

Returns:
Pointer to the next contribution
Parameters:
qssp The QSSP context handle
ctb The datagram's contributions
hid The handler identity
This routine processes the contributions that rightfully belong to the datagram. In the other datagrams, these are called the root contributions. For the QSTD datagrams, I rethought this issue and decided that while the root contribution is a good idea, I had implemented incorrectly. What QSTD does is let the update at datagram time consume those contributions it believes rightfully belong to it.
So that the user knows that these have been processed, this routine returns the next contribution after the datagram's contributions.

static __inline void qssp_unpack_ctx_v0 QSSP_ctx ctx,
const QSSP_efsCtxBdyV0 v0
[static]
 

Unpacks version 0 of the context.

Parameters:
ctx The destination context
v0 The source context

static __inline void qssp_unpack_ctx_v1 QSSP_ctx ctx,
const QSSP_efsCtxBdyV1 v1
[static]
 

Unpacks version 1 of the context.

Parameters:
ctx The destination context
v1 The source context

static __inline void qssp_unpack_ctx_v2 QSSP_ctx ctx,
const QSSP_efsCtxBdyV2 *  v2
[static]
 

Unpacks version 2 of the context.

Parameters:
ctx The destination context
v2 The source context

static __inline void qssp_unpack_did QSD_ctxDid *  did,
const LSE_did *  src
[static]
 

Unpacks the did context.

Parameters:
did The destination did
src The source did


Generated on Thu Jun 12 02:28:55 2008 by  doxygen 1.4.4