GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LSF / V2-0-6

Constituent: lsfprint     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LSF_print.c File Reference

Prints the headers an LSF formatted data structure. More...

#include "LSF/LSF.h"
#include "LSF/LSF_print.h"
#include <stdio.h>
#include <string.h>

Include dependency graph for LSF_print.c:


Functions

static void new_line (void)
 Prints a new line character.
unsigned int LSF_printCtxSizeof (void *prm)
 Returns the size, in bytes, of the print context handle.
void LSF_printCtxConstruct (LSF_printCtx *ctx, unsigned int options)
 Constructs/Initializes the print control context.
void LSF_printCtxDestruct (LSF_printCtx *ctx)
 Destroys the print context.
LSF_scanContributionHandler LSF_printDatagram (LSF_printCtx *ctx, const LSF_datagram *dgm)
 Prints the header of the specified datagram.
LSF_scanRecordHandler LSF_printContribution (LSF_printCtx *ctx, const LSF_contribution *ctb)
 Prints the header of the specified contribution.
unsigned int LSF_printRecord (LSF_printCtx *ctx, const LSF_record *rec)
 Prints the header of the specified contribution.
unsigned int LSF_printDatagramHdr (const LSF_datagram_hdr *dgm_hdr, unsigned int dgm_seq)
 Prints a short, one-line dump of the datagram header.
unsigned int LSF_printContributionHdr (const LSF_contribution_hdr *ctb_hdr, unsigned int ctb_seq)
 Prints a short, one-line dump of the contribution header.
unsigned int LSF_printRecordHdr (const LSF_record_hdr *rec_hdr, unsigned int rec_seq)
 Prints a short, one-line dump of the record header.

Detailed Description

Prints the headers an LSF formatted data structure.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: LSF_print.c,v 1.4 2005/10/13 18:36:44 russell Exp $

Function Documentation

unsigned int LSF_printContribution LSF_printCtx ctx,
const LSF_contribution ctb
 

Prints the header of the specified contribution.

Return values:
0,indicating to continue the scan
Parameters:
ctx Print context parameter
ctb The contribution to print

unsigned int LSF_printContributionHdr const LSF_contribution_hdr ctb_hdr,
unsigned int  ctb_seq
 

Prints a short, one-line dump of the contribution header.

Returns:
The number of characters printed to the screen
Parameters:
ctb_hdr The contribution header to print
ctb_seq A integer that identifies the number or sequence of this contribution
Warning:
No new line is emitted on the theory that the user can provide one if desired, but cannot retract it once emitted.

void LSF_printCtxConstruct LSF_printCtx ctx,
unsigned int  options
 

Constructs/Initializes the print control context.

Parameters:
ctx The context to initialize
options Options flags, currently unused, specify as 0

void LSF_printCtxDestruct LSF_printCtx ctx  ) 
 

Destroys the print context.

Parameters:
ctx The context to destroy
This is a NOOP here only to statisfy interface requirements

unsigned int LSF_printCtxSizeof void *  prm  ) 
 

Returns the size, in bytes, of the print context handle.

Returns:
The size, in bytes, of the print context handle
Parameters:
prm Unused context parameter

unsigned int LSF_printDatagram LSF_printCtx ctx,
const LSF_datagram dgm
 

Prints the header of the specified datagram.

Return values:
0,indicating to continue the scan
Parameters:
ctx Print context parameter
dgm The datagram to print

unsigned int LSF_printDatagramHdr const LSF_datagram_hdr dgm_hdr,
unsigned int  dgm_seq
 

Prints a short, one-line dump of the datagram header.

Returns:
The number of characters printed to the screen
Parameters:
dgm_hdr The datagram header to print
dgm_seq A integer that identifies the number or sequence of this datagram
Warning:
No new line is emitted on the theory that the user can provide one if desired, but cannot retract it once emitted.

unsigned int LSF_printRecord LSF_printCtx ctx,
const LSF_record rec
 

Prints the header of the specified contribution.

Return values:
0,indicating to continue the scan
Parameters:
ctx Print context parameter
rec The record to print

unsigned int LSF_printRecordHdr const LSF_record_hdr rec_hdr,
unsigned int  rec_seq
 

Prints a short, one-line dump of the record header.

Returns:
The number of characters printed to the screen
Parameters:
rec_hdr The record header to print
rec_seq A integer that identifies the number or sequence of this record
Warning:
No new line is emitted on the theory that the user can provide one if desired, but cannot retract it once emitted.


Generated on Wed Aug 27 01:54:52 2008 by  doxygen 1.4.4