GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSSP / V1-1-1 > qssp / linux-gcc
Typedefs | |
typedef struct _QSTD_labels | QSTD_labels |
typedef struct _QSTD_labelsHandlers | QSTD_labelsHandlers |
typedef struct _QSTD_labelsVersions | QSTD_labelsVersions |
Functions | |
const QSTD_labels * | QSTD_labelsHandlersResolveFull (const QSTD_labelsHandlers *handlers, unsigned int handlerId, unsigned int version) |
Retrieves a pointer for the labels for the specified handler. | |
const QSTD_labelsVersions * | QSTD_labelsHandlersResolve (const QSTD_labelsHandlers *handlers, unsigned int handleId) |
Retrieves a pointer for the labels for all the versions of the specified handler. | |
const QSTD_labels * | QSTD_labelsVersionsResolve (const QSTD_labelsVersions *versions, unsigned int version) |
Retrieves a pointer for the labels for the specified version. | |
const char * | QSTD_labelsHandlerGet (const QSTD_labels *labels) |
Retrieves a pointer to title string (the handler name). | |
const char * | QSTD_labelsConditionGet (const QSTD_labels *labels, unsigned int conditionId) |
Retrieves a pointer to condition string (the condition's name). |
CVS $Id: QSTD_labels.h,v 1.1 2008/06/10 22:25:45 russell Exp $
QSTD_labelsVersions *versions; QSTD_labels *labels; const char *handler_name; const char *condition_name; / * | Fetch the versions for this handler, | then the labels for this version | | One could also use the convenience routine | | labels = QSTD_labelsHandlersResolveFull (handlers, | handler, | version); / versions = QSTD_labelsHandlersResolve (handlers, handler); labels = QSTD_labelsVersionsResolve (versions, version); handler_name = QSTD_labelsHandlerGet (labels); printf ("Handler: %s\n", handler_name); for (idx = 0; idx < 32; idx++) { condition_name = QSTD_labelsConditionGet (labels, idx); printf ("%s %u\n", condition_name, condition_counters[idx]); }
const char* QSTD_labelsConditionGet | ( | const QSTD_labels * | labels, | |
unsigned int | conditionId | |||
) |
Retrieves a pointer to condition string (the condition's name).
labels | The label structure for the handler | |
conditionId | The condition identify [0,31] |
References _QSTD_labels::conditions.
const char* QSTD_labelsHandlerGet | ( | const QSTD_labels * | labels | ) |
Retrieves a pointer to title string (the handler name).
labels | The label structure for the handler |
References _QSTD_labels::handler.
const QSTD_labelsVersions* QSTD_labelsHandlersResolve | ( | const QSTD_labelsHandlers * | handlers, | |
unsigned int | handler | |||
) |
Retrieves a pointer for the labels for all the versions of the specified handler.
handlers | The labels for all the handlers | |
handler | The handler's identifier (e.g. EH_ID_K_GAMMA, etc) |
References _QSTD_labelsHandlers::versions.
Referenced by QSTD_labelsHandlersResolveFull().
const QSTD_labels* QSTD_labelsHandlersResolveFull | ( | const QSTD_labelsHandlers * | handlers, | |
unsigned int | handler, | |||
unsigned int | version | |||
) |
Retrieves a pointer for the labels for the specified handler.
handlers | The labels for all the handlers | |
handler | The handler's identifier (e.g. EH_ID_K_GAMMA, etc) | |
version | The version number |
References QSTD_labelsHandlersResolve(), and QSTD_labelsVersionsResolve().
Referenced by QSTD_updateAtDatagram().
const QSTD_labels* QSTD_labelsVersionsResolve | ( | const QSTD_labelsVersions * | versions, | |
unsigned int | version | |||
) |
Retrieves a pointer for the labels for the specified version.
versions | The labels for all versions of the handler | |
version | The version number |
References _QSTD_labelsVersions::cnt, and _QSTD_labelsVersions::labels.
Referenced by QSTD_labelsHandlersResolveFull().