GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QCFG / V1-1-3 > qcfg_cmp_lsd / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

qcfg_cmp_lsd.c File Reference

Program for comparing two sets of configuration datagrams. More...

#include <QCFG/QCFG.h>
#include <QCFG/QCFG_msgs.h>
#include <RIM/RIM_ground.h>
#include <MSG/MSG_pubdefs.h>
#include <string.h>
#include <stdio.h>
#include <libgen.h>

Classes

struct  _qcfg_parm

Typedefs

typedef struct _qcfg_parm qcfg_parm

Functions

static int checkDgm (RIM *rim, unsigned int secs, void *vParm)
 Check processing of the datagram file.
static int getOptns (int argc, char **argv, QCFG_cmdOptns *optns)
 Get options and parameters.
static void usage (char **argv, int error)
 Print out a usage block.
int main (int argc, char **argv)
 Main program.


Detailed Description

Program for comparing two sets of configuration datagrams.

Author:
James Swain & Owen Saxton
$Id: qcfg_cmp_lsd.c,v 1.10 2011/03/29 21:47:53 saxton Exp $

Function Documentation

int checkDgm ( RIM *  rim,
unsigned int  secs,
void *  vParm 
) [static]

Check processing of the datagram file.

Parameters:
rim The address of the RIM
secs The timestamp of the datagram, in spacecraft units.
vParm The address of the parameter block
Return values:
0 Continue processing
1 Stop processing

Referenced by main().

int getOptns ( int  argc,
char **  argv,
QCFG_cmdOptns optns 
) [static]

Get options and parameters.

Parameters:
argc Number of command-line arguments
argv List of command line arguments
optns Address of options block to be filled
Return values:
0 Success
1 Help requested
-1 An error occurred

References _QCFG_cmdOptns::index1, _QCFG_cmdOptns::index2, _QCFG_cmdOptns::nFile, _QCFG_cmdOptns::outFile, usage(), and _QCFG_cmdOptns::verbose.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Main program.

Parameters:
argc Number of command line arguments this application was invoked with
argv Array of strings, each one holding one command line argument
Returns:
0 Success

-1 An error occurred

References checkDgm(), _QCFG_cmdOptns::fileList, getOptns(), _QCFG_cmdOptns::index1, _QCFG_cmdOptns::index2, _QCFG_cmdOptns::nFile, _QCFG_cmdOptns::outFile, and _QCFG_cmdOptns::verbose.

void usage ( char **  argv,
int  error 
) [static]

Print out a usage block.

Parameters:
argv The address of the command argument list
error Error indicator: error if -1; okay otherwise

Referenced by getOptns().


Generated on Tue Nov 29 19:38:08 2011 by  doxygen 1.5.8