GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QEMP / V1-1-3

Constituent: qemp     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QEMP.c File Reference

Generic QEMP routines. More...

#include "QEMP/QEMP.h"
#include "QASC_pvtdefs.h"
#include "QEMP_pvtdefs.h"
#include "EMP/ASC_ids.h"

Include dependency graph for QEMP.c:


Functions

unsigned int QEMP_sizeof (QEMP_TYPEID typeid)
 Return the size, in bytes, of the buffer needed to handle data of the specified type.
QEMP_TYPEID QEMP_typeof (const LSF_contribution *ctb)
 Return the type of given contribution.
const char * QEMP_errToStr (QEMP_STATUS status)
 Convert error code to a string.
static void transfer_hdrEvt (QEMP_hdrEvt *dst, const EMP_hdrEvt *src)
 Transfer an EMP_hdrEvt structure to a QEMP_hdrEvt structure.
void QEMP_hdrTransfer (QEMP_hdr *dst, const EMP_hdr *src)
 Transfers the contents of an EMP_hdr structure to a QEMP_hdr structure.

Detailed Description

Generic QEMP routines.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: QEMP.c,v 1.4 2006/10/21 00:30:00 russell Exp $

Function Documentation

const char* QEMP_errToStr QEMP_STATUS  status  ) 
 

Convert error code to a string.

Returns:
string of error code
Parameters:
status status codes QEMP_ERR_Xxxx
----------------------------------------------------------------------

void QEMP_hdrTransfer QEMP_hdr dst,
const EMP_hdr *  src
 

Transfers the contents of an EMP_hdr structure to a QEMP_hdr structure.

Parameters:
dst The destination QEMP_hdr structure
src The source EMP_hdr structure
Because the EMP structure contains 64-bit long long, and because the alignment of these is compiler dependent, they cannot be simply copied to one another. Hence the need for a formalized transfer routine.

Note:
This is not part of the public interface.

unsigned int QEMP_sizeof QEMP_TYPEID  typeid  ) 
 

Return the size, in bytes, of the buffer needed to handle data of the specified type.

Return values:
The size, in bytes, of the buffer needed to handle data of the specified type.
QEMP_STATUS_CTB_UNKNOWN_TYPEID,if the type id was not recognized

QEMP_TYPEID QEMP_typeof const LSF_contribution *  ctb  ) 
 

Return the type of given contribution.

Return values:
QEMP_TYPEID_ASC 
QEMP_TYPEID_UNKNOWN,if typeid is not recognized
Parameters:
ctb The ontributor to query

static void transfer_hdrEvt QEMP_hdrEvt dst,
const EMP_hdrEvt *  src
[static]
 

Transfer an EMP_hdrEvt structure to a QEMP_hdrEvt structure.

Parameters:
dst The destination QEMP_hdrEvt structure
src The source EMP_hdrEvt structure


Generated on Fri Apr 18 01:16:41 2008 by  doxygen 1.4.4