GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> XFC / V0-3-1 > gxfc / rhel5-64
#include <xfc_rto.h>
#include <xfc_rto_def.h>
#include <xfc_print_def.h>
#include <EFC/EDM.h>
#include <EFC/EFC_display.h>
#include <EDS/EDSD_print.h>
#include <EDS/io/EBF_stream.h>
#include <CDM/CDM_pubdefs.h>
#include <PBS/MBA.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
Typedefs | |
typedef struct _TASK_tcb | TASK_tcb |
Functions | |
static unsigned int | get_reporting_options (const char *opts, int *cnt) |
Returns a bit mask of the reporting options. | |
static int | get_edm_level (const char *opts) |
Uses the input string to find the diagnostic reporting level. | |
static unsigned int | get_ss_to_print (const char *opts) |
Uses the input string to find the subsystems to print. | |
static unsigned int | get_ss_to_display (const char *opts) |
Uses the input string to find the subsystem display to make. | |
static int | loadLib (const char *library_name, int verbose) |
Dynamically loads the specified configuration library. | |
int | xfc_rto_sizeof (void) |
Returns the size, in bytes, of an XfcRto structure. | |
int | xfc_rto_parse (XfcRto *rto, XfcRtoStyle style, int argc, char *const argv[]) |
Examines the command line parameters and fills the print control structure. | |
int | xfc_rto_edm_level_get (const XfcRto *rto) |
Return the EDM reporting level. | |
void | xfc_rto_schema_set (XfcRto *rto, int schema_id, int instance_id) |
Return the EDM reporting level. | |
void | xfc_rto_usage_report (const char *name, XfcRtoStyle style) |
Gives a terse explanation of this commands usage. |
CVS $Id: xfc_rto.c,v 1.5 2011/03/28 20:51:00 russell Exp $
static int get_edm_level | ( | const char * | opts | ) | [static] |
Uses the input string to find the diagnostic reporting level.
opts | The options string, The options are
|
Referenced by xfc_rto_parse().
static unsigned int get_reporting_options | ( | const char * | opts, | |
int * | cnt | |||
) | [static] |
Returns a bit mask of the reporting options.
opts | The option string to parse | |
cnt | Returned as the EFA buffering count |
References XFC_PRINT_OPTS_M_RESULTS_EVENT, and XFC_PRINT_OPTS_M_RESULTS_SUMMARY.
Referenced by xfc_rto_parse().
static unsigned int get_ss_to_display | ( | const char * | opts | ) | [static] |
Uses the input string to find the subsystem display to make.
opts | The options string, The options are
|
Referenced by xfc_rto_parse().
static unsigned int get_ss_to_print | ( | const char * | opts | ) | [static] |
Uses the input string to find the subsystems to print.
opts | The options string, The options are
|
Referenced by xfc_rto_parse().
static int loadLib | ( | const char * | library_name, | |
int | verbose | |||
) | [static] |
Dynamically loads the specified configuration library.
0,success | ||
-1,failure |
library_name | The name of the library to load | |
verbose | The verbosity level |
Referenced by xfc_rto_parse().
int xfc_rto_edm_level_get | ( | const XfcRto * | rto | ) |
Return the EDM reporting level.
rto | The Xfc runtime options structure |
References _XfcRto::level.
int xfc_rto_parse | ( | XfcRto * | rto, | |
XfcRtoStyle | style, | |||
int | argc, | |||
char *const | argv[] | |||
) |
Examines the command line parameters and fills the print control structure.
fn int xfc_rto_parse (XfcRto *rto, XfcRtoStyle style, int argc, char *const argv[])
0 | Everything is okay. | |
-1 | Incorrect command usage. Usually this means that the input file name was absent. |
rto | The runtime options structure. HELLO | |
style | The filter style. This determines the set of available options | |
argc | The number of command line parameters. | |
argv | The array of pointers to the command line parameters. |
References _XfcRto::clevel, _XfcRto::dgmfile, _XfcRto::efa_post_cnt, get_edm_level(), get_reporting_options(), get_ss_to_display(), get_ss_to_print(), _XfcRto::level, loadLib(), _XfcRto::mode, _XfcRto::name, _XfcRto::ofile, _XfcRto::options, _XfcRto::rate, _XfcRto::ss_to_display, _XfcRto::ss_to_print, _XfcRto::to_loop, _XfcRto::to_process, _XfcRto::to_skip, _XfcRto::type, _XfcRto::verbose, and _XfcRto::vetoes.
void xfc_rto_schema_set | ( | XfcRto * | rto, | |
int | schema_id, | |||
int | instance_id | |||
) |
Return the EDM reporting level.
rto | The Xfc runtime options structure | |
schema_id | The filter's schema ID | |
instance_id | The filter's instance ID |
References _XfcRto::dbInstanceId, and _XfcRto::dbSchemaId.
int xfc_rto_sizeof | ( | void | ) |
Returns the size, in bytes, of an XfcRto structure.
void xfc_rto_usage_report | ( | const char * | name, | |
XfcRtoStyle | style | |||
) |
Gives a terse explanation of this commands usage.
name | The name of the main program | |
style | The filter style (production, development, instrumented) |
References XFC_RTO_STYLE_K_DEV.