GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / V9-1-3 > QLATC_print / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

iterator.c File Reference

functions to retrieve a captured LATC IMM from a set of datagrams More...

#include <LATC/LATC_msgs.h>
#include <iterator_p.h>
#include <retrieve_p.h>
#include <DUMP/dump.h>
#include <LSF/LSF.h>
#include <LSF/LSF_ids.h>
#include <LSF/LSF_scan.h>
#include <MSG/MSG_pubdefs.h>
#include <LEM/msg_macros.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Functions

static LSF_scanContributionHandler retrieve_dgm (ApidStream *astream, const LSF_datagram *dgm)
 Screens out any datagrams that are not LATC datagrams.
static LSF_scanRecordHandler retrieve_ctb (ApidStream *astream, const LSF_contribution *ctb)
 Retrieves a contribution.
unsigned LATC_iterator (LATC_imm *imm, const char *filename)
 Process a file of event monitor datagrams.


Detailed Description

functions to retrieve a captured LATC IMM from a set of datagrams

Author:
jswain@slac.stanford.edu

   Cvs $Id: iterator.c,v 1.7 2011/04/08 00:20:45 apw Exp $

Function Documentation

unsigned LATC_iterator ( LATC_imm *  imm,
const char *  filename 
)

Process a file of event monitor datagrams.

Returns:
Overall status
Parameters:
imm In-memory model to populate
filename Name of the file to use as the source of dgms

< The read buffer

References retrieve_dgm().

Referenced by main().

static LSF_scanRecordHandler retrieve_ctb ( ApidStream *  astream,
const LSF_contribution *  ctb 
) [static]

Retrieves a contribution.

Parameters:
astream The APID stream
ctb The datagram contribution

References LATC_retrieve().

Referenced by retrieve_dgm().

LSF_scanContributionHandler retrieve_dgm ( ApidStream *  astream,
const LSF_datagram *  dgm 
) [static]

Screens out any datagrams that are not LATC datagrams.

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

References retrieve_ctb().

Referenced by LATC_iterator().


Generated on Tue Sep 27 17:19:19 2011 by  doxygen 1.5.8