GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSEP / V3-4-1 > qsep / rhel6-64
Functions | |
int | QDFP_ctxSizeof (unsigned int resource_level, void *prm) |
Returns the size, in bytes, of the handle for updating the standard event meta-information. | |
void * | QDFP_ctxConstruct (QDFP_ctx *ctx, unsigned int resource_level, void *prm, const QSEP *qsep, QFR_fileCtx *qfr, void *ptr) |
Construct (initializes) the handle for updating the standard compressed data context information. | |
int | QDFP_ctxUpdate (QDFP_ctx *ctx, const QDFP_ctxCtb *ctb, int new) |
Updates the compressed data contribution. |
CVS $Id: QDFP_ctx.h,v 1.3 2008/04/02 00:34:18 russell Exp $
void * QDFP_ctxConstruct | ( | QDFP_ctx * | ctx, | |
unsigned int | resource_level, | |||
void * | prm, | |||
const QSEP * | qsep, | |||
QFR_fileCtx * | qfr, | |||
void * | ptr | |||
) |
Construct (initializes) the handle for updating the standard compressed data context information.
ctx | The context to be initialize. | |
resource_level | The maximum resource level. Attempts to expand event with resources needs above this value will return QSEP_STATUS_K_INSRSC, that is INSUFFICIENT RESOURCES. | |
prm | Static configuration options, unused as of yet. | |
qsep | The public physics context handle | |
qfr | The file resolution handle | |
ptr | Memory to allocate the pieces from. This must be guaranteed by the caller to be large enough |
References _QDFP_ctx::acd, _QSEP::atx, _QSEP::ctx, _QDFP_ctx::esb, _QDFP_ctx::gem, _QDFP_ctx::qfr, _QDFP_ctx::qsep, and _QDFP_ctx::tem.
Referenced by qsep_dtxCtx_construct().
int QDFP_ctxSizeof | ( | unsigned int | resource_level, | |
void * | prm | |||
) |
Returns the size, in bytes, of the handle for updating the standard event meta-information.
resource_level | The maximum resource level. Attempts to expand event with compression levels that use resources beyond this value will return QSEP_STATUS_K_INSRSC that is INSUFFICIENT RESOURCES. This must be a number between 0 and 15. This parameter plus prm must also be passed to QSEP_construct | |
prm | A run-time set parameter used to stylize the configuration. This parameter plus max_level must also be passed to QSEP_construct. |
Referenced by QSEP_sizeof().
int QDFP_ctxUpdate | ( | QDFP_ctx * | qdfp, | |
const QDFP_ctxCtb * | ctb, | |||
int | new | |||
) |
Updates the compressed data contribution.
== | 0, Successfully handled | |
!= | 0, Error, this is encoded as a bit mask of the failed operations. |
qdfp | The application specific public context handle | |
ctb | The contribution to handle | |
new | Flag indicating that new information due to a mode change or a new run may be present. |
References _QDFP_ctx::acd, _QDFP_ctxCtb::bdy, _QDFP_ctx::gem, _QDFP_ctxCtb::hdr, _QDFP_ctx::qfr, _QDFP_ctx::tem, _QDFP_ctxBdy::v0, and _QDFP_ctxBdy::v1.
Referenced by cdfUpdate().