GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QLSM / V2-0-1 > qlsm_print / rhel5-64
#include <QLSM/QLSM_istream.h>
#include <QLSM/QLSM_timetone.h>
#include <QLSM/QLSM_attitude.h>
#include <QLSM/QLSM_ancillary.h>
#include <QLSM/QLSM_type.h>
#include <QLSM/QLSM_expand.h>
#include <QLSM/QLSM_print.h>
#include <QSD/CCSDS_istream.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
Classes | |
struct | _Rto |
The runtime parameters. More... | |
Typedefs | |
typedef struct _Rto | Rto |
Typedef for struct _Rto. | |
Functions | |
static int | get_rto (Rto *rto, int argc, char *const argv[]) |
Examines the command line parameters and fills the print run time options control structure. | |
static void | report_usage (void) |
Brief explanation on qlsm_print usage. | |
static int | countem (unsigned int word) |
Counts the number of set bits in word. | |
int | main (int argc, char *const argv[]) |
Prints the contents of the magic 7 packets. |
CVS $Id: qlsm_print.c,v 1.2 2011/03/30 21:53:58 russell Exp $
static int countem | ( | unsigned int | word | ) | [static] |
Counts the number of set bits in word.
word | The word to count the set bits in |
Referenced by main().
static int get_rto | ( | Rto * | rto, | |
int | argc, | |||
char *const | argv[] | |||
) | [static] |
Examines the command line parameters and fills the print run time options control structure.
rto | The parameter run time options block. | |
argc | The number of command line parameters. | |
argv | The array of pointers to the command line parameters. |
0,Everything | is okay. | |
-1,Incorrect | command usage. Usually this means that the input file name was absent. |
References _Rto::ifile, _Rto::nheader, QLSM_TYPE_M_ALL, QLSM_TYPE_M_ANCILLARY, QLSM_TYPE_M_ATTITUDE, QLSM_TYPE_M_TIMETONE, report_usage(), and _Rto::which.
Referenced by main().
int main | ( | int | argc, | |
char *const | argv[] | |||
) |
Prints the contents of the magic 7 packets.
argc | The argument count | |
argv | The vector of arguments |
$qlsm_print -h<nlines> -f -ATX <filename>\n"
For usage details do
$qlsm_print <no arguments> or $qlsm_print ?
References countem(), _QLSM_istreamDsc::dat, get_rto(), _Rto::ifile, _QLSM_istreamDsc::len32, _Rto::nheader, QLSM_TYPE_K_ANCILLARY, QLSM_TYPE_K_ATTITUDE, QLSM_TYPE_K_TIMETONE, QLSM_TYPE_M_ANCILLARY, QLSM_TYPE_M_ATTITUDE, QLSM_TYPE_M_TIMETONE, _QLSM_istreamDsc::type, _QLSM_istreamDsc::version, and _Rto::which.