GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QCFG / V1-1-3 > qcfg_print / rhel6-64
#include <QCFG/QCFG.h>
#include <QCFG/QCFG_msgs.h>
#include <RIM/RIM_ground.h>
#include <MSG/MSG_pubdefs.h>
#include <PBS/WCT.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.h>
Classes | |
struct | _qcfg_parm |
Typedefs | |
typedef struct _qcfg_parm | qcfg_parm |
Functions | |
static int | printRim (RIM *rim, unsigned int secs, void *vParm) |
Print the contents of a RIM. | |
static int | getOptns (int argc, char **argv, QCFG_cmdOptns *optns) |
Get options and parameters. | |
static void | usage (char **argv, int error) |
Print a usage block. | |
int | main (int argc, char **argv) |
Main program. |
$Id: qcfg_print.c,v 1.9 2011/03/29 21:47:53 saxton Exp $
int getOptns | ( | int | argc, | |
char ** | argv, | |||
QCFG_cmdOptns * | optns | |||
) | [static] |
Get options and parameters.
argc | Number of command-line arguments | |
argv | List of command line arguments | |
optns | Address of options block to be filled |
0 | Success | |
1 | Help requested | |
-1 | An error occurred |
References _QCFG_cmdOptns::genXml, _QCFG_cmdOptns::index1, _QCFG_cmdOptns::nFile, _QCFG_cmdOptns::noPrint, _QCFG_cmdOptns::outFile, usage(), and _QCFG_cmdOptns::verbose.
Referenced by main().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Main program.
argc | Number of command line arguments to the executable | |
argv | Array of NULL terminated strings that make up the command line arguments |
0 | Success | |
-1 | An error occurred |
References _QCFG_cmdOptns::fileList, _QCFG_cmdOptns::genXml, getOptns(), _QCFG_cmdOptns::index1, _QCFG_cmdOptns::noPrint, _QCFG_cmdOptns::outFile, printRim(), and _QCFG_cmdOptns::verbose.
int printRim | ( | RIM * | rim, | |
unsigned int | secs, | |||
void * | vParm | |||
) | [static] |
Print the contents of a RIM.
rim | The address of the RIM | |
secs | The time the data was sent, in spacecraft time | |
vParm | The address of the parameter block |
0 | Always continue processing |
Referenced by main().
void usage | ( | char ** | argv, | |
int | error | |||
) | [static] |
Print a usage block.
argv | The address of the command argument list | |
error | Error indicator: error if -1; okay otherwise |
Referenced by getOptns().