GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-10-1 > ebf_extract / sun-gcc
#include "EDS/ESS.h"
#include "EDS/EDS_fw.h"
#include "EDS/EBF_siv.h"
#include "EDS/EBF_dir.h"
#include "EDS/EBF_edw.h"
#include "EDS/LCBV.h"
#include "EDS/io/LCBP.h"
#include "EDS/io/ESX.h"
#include "EDS/io/EBF_stream.h"
#include <stdlib.h>
#include <stdio.h>
Classes | |
struct | _Ctl |
Collections all the control parameters together. These are essentially the interpretted command line options. More... | |
struct | _Ctx |
The file writing context. More... | |
Typedefs | |
typedef struct _EBF_dir | EBF_dir |
typedef struct _Ctl | Ctl |
Typedef for struct _Ctl. | |
typedef struct _Ctx | Ctx |
Typedef for struct _Ctx. | |
Functions | |
static unsigned int | ebf_extract (Ctl *ctl) |
Finishes the platform common setup and initalization, starts the packet flow. | |
static void | report_usage (int verbose) |
Brief explanation on ebf_extract usage. | |
static int | fill_ctl (Ctl *ctl, int argc, char *const argv[]) |
Examines the command line parameters and fills the print control structure. | |
static int | extract (Ctx *ctx, unsigned int edw, EBF_pkt *pkt) |
Writes each event to the output stream. | |
int | main (int argc, char *const argv[]) |
Usual entry point for the readtest. |
$ ebf_extract -n<# of events> -s<# to skip> -b<block_size> -o<out.ebf> <in.ebf>
CVS $Id: ebf_extract.c,v 1.3 2009/04/29 19:52:14 russell Exp $
static unsigned int ebf_extract | ( | Ctl * | ctl | ) | [static] |
Finishes the platform common setup and initalization, starts the packet flow.
ctl | The control structure |
Writes each event to the output stream.
ctx | Context structure, holding the current buffer state, buffer contents and output stream handle | |
edw | Event Builder Word | |
pkt | The packet to process |
static int fill_ctl | ( | Ctl * | ctl, | |
int | argc, | |||
char *const | argv[] | |||
) | [static] |
Examines the command line parameters and fills the print control structure.
ctl | The parameter control 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. |
int main | ( | int | argc, | |
char *const | argv[] | |||
) |
Usual entry point for the readtest.
argc | The number of arguments | |
argv | The vector of arguments. |