GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QPIG / V2-0-1

Constituent: qpig_print     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QPIG_print.c File Reference

Functions to retrieve the PIG state data from a datagram. More...

#include "QPIG_p.h"
#include "QPIG/QPIG.h"
#include "DUMP/dump.h"
#include "LSF/LSF.h"
#include "LSF/LSF_ids.h"
#include "LSF/LSF_scan.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Include dependency graph for QPIG_print.c:


Data Structures

struct  _Ctl
 Run time print options/parameters. More...

Typedefs

typedef _Ctl Ctl
 Run time print options/parameters.

Functions

static void report_usage (void)
 Brief explanation on qpig_print usage.
static int get_ctl (Ctl *ctl, int argc, char *const argv[])
 Get the command line parameters.
static LSF_scanContributionHandler print_dgm (ApidStream *astream, const LSF_datagram *dgm)
 Process PIG register state datagrams.
static void new_line (void)
 Print a new line.
int QPIG_print (int argc, char *const argv[])
 Process a file of PIG register state datagrams.
int main (int argc, char *const argv[])
 Main program to process a file of PIG register state datagrams.

Detailed Description

Functions to retrieve the PIG state data from a datagram.

Author:
James Swain & Owen Saxton
Id
QPIG_print.c,v 1.6 2009/02/20 23:04:22 saxton Exp

Function Documentation

static int get_ctl Ctl ctl,
int  argc,
char *const   argv[]
[static]
 

Get the command line parameters.

This routine examines the command line parameters and fills the print run time options control structure.

Parameters:
ctl The parameter run time options block.
argc The number of command line parameters.
argv The array of pointers to the command line parameters.
Return values:
0 Everything is okay.
-1 Incorrect command usage. Usually this means that the input file name was absent.

int main int  argc,
char *const   argv[]
 

Main program to process a file of PIG register state datagrams.

Parameters:
argc The argument count
argv The vector of command line strings
Returns:
Overall status

LSF_scanContributionHandler print_dgm ApidStream *  astream,
const LSF_datagram *  dgm
[static]
 

Process PIG register state datagrams.

Parameters:
astream The APID stream
dgm The datagram
Returns:
Either a stop scan signal or the contribution handler

int QPIG_print int  argc,
char *const   argv[]
 

Process a file of PIG register state datagrams.

Parameters:
argc The argument count
argv The vector of command line strings
Returns:
Overall status


Generated on Sun Jun 14 02:19:13 2009 by  doxygen 1.4.4