GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EMP / V1-3-1
Constituent: asc_write     Tag: rad750
#include "EMP/ASC.h"
#include "EMP/ASC_dgmPrint.h"
#include "EMP/ASC_pubdefs.h"
#include "EMP/LSD_sdi.h"
#include "EDS/io/EBF_stream.h"
#include "EDS/io/LCBP.h"
#include "EDS/EDS_fw.h"
#include "EDS/LCBV.h"
#include "ITC/ITC_pubdefs.h"
#include "IMM/FPM_pubdefs.h"
#include "IMM/RBM_pubdefs.h"
#include "EMP_DB/ASC_DB_schema.h"
#include "LSE/CCSDS_ostream.h"
#include "LSF/LSF_reason.h"
#include "MSG/MSG_pubdefs.h"
#include "CDM/CDM_pubdefs.h"
#include "PBS/PBS.h"
#include "PBS/TMR.h"
#include "PBS/MBA.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for asc_write.c:
Data Structures | |
struct | _GetCtx |
Structure to hold the context for retrieving a pointer to the next input file. More... | |
struct | _OutputCtx |
Output context. More... | |
struct | _Ctl |
Collections all the control parameters together. These are essentially the interpretted command line options. More... | |
Typedefs | |
typedef _GetCtx | GetCtx |
Typedef for struct _GetCtx. | |
typedef const char *(* | Get_filename )(void *ctx) |
Typedef of the callback routine to retrieve the next input file name. | |
typedef _OutputCtx | OutputCtx |
Typedef for struct _OutputCtx. | |
typedef _Ctl | Ctl |
Typedef for struct _Ctl. | |
Functions | |
static void | CheckClearTiming (void) |
quick timing test for clearing the histograms | |
static int | asc_init (Ctl *ctl) |
One-time ASC initialization. | |
int | asc_close (Ctl *ctl) |
Closes the asc context. | |
static void | emp_setup (const ASC_DB_Schema *db, ASC_handlerConstructCfg *cfg, int *retEdsPriority, EDS_fw **retFw, ASC **retAsc) |
Install EMP/ASC into the EDS system. | |
static int | do_it (Ctl *ctl) |
Simple driver program to setup, accumulate and print the statistics. | |
static unsigned int | process (EBF_stream *stream, int nloops, int nskip, int nprocess, LCBV_pktCb rtn, void *prm) |
Convenience routine to formalize the processing. | |
static ASC_handlerConstructCfg * | output_construct (const char *ofilename, unsigned int *options) |
Construct the output configuration structure. | |
static int | output_write (OutputCtx *ctx, LSD_sdiPds *pds) |
Processes an output packet. | |
static int | output_print (unsigned int *options, LSD_sdiPds *pds) |
Processes an output packet by just printing it. | |
static int | file_write (FILE *file, void *buf, int nbytes) |
A CCSDS_ostream output callback routine used when writing the specified buffer to a file. | |
static int | InstallServices (EDS_fw *fw, int edsPriority, ASC **asc, const ASC_DB_Schema *db, ASC_handlerConstructCfg *cfg) |
Install EMP/ASC services into the EDS system. | |
static const char * | get_filename (GetCtx *ctx) |
User provide callback routine to retrieve the next input file. | |
static void | reportUsage (void) |
Gives a terse explanation of this commands usage. | |
static int | fill_ctl (Ctl *ctl, int argc, char *const argv[]) |
Examines the command line parameters and fills the print control structure. | |
int | main (int argc, char *const argv[]) |
Usual entry point for the asc_write. | |
static unsigned int | get_reporting_options (const char *s) |
Returns a bit mask of the reporting options. | |
Variables | |
const unsigned int | EbfData [] |
A small set of test data. |
JJRussell - russell@slac.stanford.edu
$ asc_write -n <number_of_events> -o<output_file> <input_files> Do an asc_write with no arguments for a more complete explanation of the parameters.
CVS $Id: asc_write.c,v 1.2 2006/11/14 20:33:39 russell Exp $
|
Typedef of the callback routine to retrieve the next input file name.
|
|
Closes the asc context.
|
|
One-time ASC initialization.
|
|
Simple driver program to setup, accumulate and print the statistics.
|
|
Install EMP/ASC into the EDS system.
|
|
A CCSDS_ostream output callback routine used when writing the specified buffer to a file.
|
|
Examines the command line parameters and fills the print control structure. fn static int fill_ctl (Ctl *ctl, int argc, char *const argv[])
|
|
User provide callback routine to retrieve the next input file.
|
|
Returns a bit mask of the reporting options.
|
|
Install EMP/ASC services into the EDS system.
|
|
Usual entry point for the asc_write.
$ asc_write -omyAsc.lsd myEventFile.ebf Accumulates the statistics for events in given EBF file |
|
Construct the output configuration structure.
|
|
Processes an output packet by just printing it.
|
|
Processes an output packet.
|
|
Convenience routine to formalize the processing.
|