GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-10-1 > ebfio / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

ESX.c File Reference

EBF Selection and Extract utilities. More...

#include "EDS/EBF_dir.h"
#include "EDS/io/ESX.h"
#include "EDS/io/EBF_stream.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

Classes

struct  _ESX_ctl
 Output file context. More...

Typedefs

typedef struct _ESX_ctl ESX_ctl

Functions

static unsigned int get_number (const char *s)
 Parses the input string, returning the integer equivalent.
unsigned int ESX_sizeof (void)
void ESX_construct (ESX_ctl *esx)
unsigned int ESX_set_verbose (ESX_ctl *esx, unsigned int verbose)
void ESX_parse_oname (ESX_ctl *esx, const char *oname)
void ESX_parse_ochunk (ESX_ctl *esx, const char *s)
void ESX_parse_ichunk (ESX_ctl *esx, const char *s)
void ESX_parse_bsize (ESX_ctl *esx, const char *s)
void ESX_parse_osize (ESX_ctl *esx, const char *s)
int ESX_update_osize (ESX_ctl *esx, unsigned int size)
void ESX_close (ESX_ctl *esx)
 Closes the output stream.
unsigned int ESX_establish (ESX_ctl *esx)
int ESX_change (ESX_ctl *esx)
 Creates a new output file.
int __inline ESX_evt_declare (ESX_ctl *esx)
 Declares an input event has been seen. This information is used to determine whether to trigger the creation of a new output file.
int ESX_dir_write (ESX_ctl *esx, EBF_dir *dir)
 Writes the event.


Detailed Description

EBF Selection and Extract utilities.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: ESX.c,v 1.4 2009/04/29 20:10:16 russell Exp $

Function Documentation

int EBF_stream ESX_change ( ESX_ctl esx  ) 

Creates a new output file.

Returns:
A pointer to the stream
Parameters:
esx The control structure

void ESX_close ( ESX_ctl esx  ) 

Closes the output stream.

Parameters:
esx The control block

int ESX_dir_write ( ESX_ctl esx,
EBF_dir dir 
)

Writes the event.

Returns:
Status
Parameters:
esx The control structure
dir The directory of the event to write out

int __inline ESX_evt_declare ( ESX_ctl esx  ) 

Declares an input event has been seen. This information is used to determine whether to trigger the creation of a new output file.

Parameters:
esx The control structure

static unsigned int get_number ( const char *  s  )  [static]

Parses the input string, returning the integer equivalent.

Returns:
The integer equivalent
Parameters:
s The string to parse
The string must be in the form of a conventionally specified C integer and may optionally be followed by the suffix K, M, C. These give the scaling or units

-K Hexadecimal kilobytes (scale by 1024) -M Hexadecimal megabytes (scale by 1024 * 1024) -B LCB blocks (scale by 128, max of 31) Examples
s result
"100" 100
"100K" 100*1024
"100M" 100*1024*124
"31C 31*128


Generated on Fri Feb 26 09:16:34 2010 by  doxygen 1.5.3