GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> XFC / V0-3-2 > mfcprint / rhel6-32
#include <XFC/MFC_statsPrint.h>
#include <MFC_statsDef.h>
#include <XFC/MFC_status.h>
#include <MFC_resultDef.h>
#include <EDS/ECR_cal.h>
#include <stdio.h>
#include <string.h>
Defines | |
#define | ORDER_K_NEW_LINE 0xff |
Order to print a new line. | |
#define | ORDER_K_SUBTRACT 0xfe |
Order to subtract the next two values, title index is the 3rd. | |
Enumerations | |
enum | _TITLE_K { TITLE_K_ANY_VETO = (64 + 0) } |
Derived statistics titles. More... | |
Functions | |
static void | printHeader (const char *caption) |
Prints the header line of the statistics table. | |
static void | printBody (const MFC_stats *stats, unsigned int vetoes, const char titles[][18], const unsigned char *orders, int cnt, int flag) |
Prints the body of the statistics table. | |
void | MFC_statsPrint (MFC_statsPrintCtx *ctx, const MFC_stats *stats, unsigned int vetoes) |
Prints the statistics block in ASCII format to standard output. | |
Variables | |
static const char | Titles [33][18] |
The title lines for each of the statistical quantities. | |
static const unsigned char | AllOrder [] |
Indicates the order that the fields should be printed. |
CVS $Id#
enum _TITLE_K |
void MFC_statsPrint | ( | MFC_statsPrintCtx * | ctx, | |
const MFC_stats * | stats, | |||
unsigned int | vetoes | |||
) |
Prints the statistics block in ASCII format to standard output.
ctx | The minimum ionizing stats print context | |
stats | The statistics block to print. | |
vetoes | The active vetoes |
References printBody(), and printHeader().
static void printBody | ( | const MFC_stats * | stats, | |
unsigned int | vetoes, | |||
const char | titles[][18], | |||
const unsigned char * | orders, | |||
int | cnt, | |||
int | flag | |||
) | [static] |
Prints the body of the statistics table.
stats | The statistics to print. | |
vetoes | The active vetoes | |
titles | A set of titles to be associated with the statistics. | |
orders | A series of orders selecting which statistics are to be printed from the cnts parameter and, by implication, the title string from the titles parameter. It also contains meta-commands like new line orders to aid in the readability | |
cnt | The number of orders in the orders array. | |
flag | Flag indicating to add the next group of 64 on |
References _MFC_stats::cnts, ORDER_K_NEW_LINE, and ORDER_K_SUBTRACT.
Referenced by MFC_statsPrint().
static void printHeader | ( | const char * | caption | ) | [static] |
Prints the header line of the statistics table.
caption | A short (< 9 characters) description of the statistics being described. |
Referenced by MFC_statsPrint().
static const unsigned char AllOrder[] [static] |
Initial value:
{ STAT_K_STAGE_GEM, STAT_K_STAGE_ACD, STAT_K_MULTI_PKT, STAT_K_STAGE_DIR, STAT_K_ERR_DIR, STAT_K_ERR_CTB, STAT_K_STAGE_CAL, STAT_K_ERR_CAL, STAT_K_STAGE_XCAL, ORDER_K_NEW_LINE, STAT_K_STATUS_GEM_CNO, STAT_K_STATUS_GEM_NOTKR, STAT_K_STATUS_NO_ACD_TKR, STAT_K_STATUS_NO_TKR_ADJ, STAT_K_STATUS_LYR_COUNTS, STAT_K_STATUS_VETOED, }