gridripper::io::RegularGridBDataWriter Class Reference

GridRipper bdata file writer for regular grids. More...

#include <RegularGridBDataWriter.h>

List of all members.

Public Member Functions

 RegularGridBDataWriter (ostream &os)
 Constructs a bdata writer.
 ~RegularGridBDataWriter ()
 Destructor.
void init (int nfields, const string &tname, const string &xname, const string *fields) throw (IllegalArgumentException&)
 (Re)initializes the bdata writer.
void write (double t, double xmin, double dx, int npoints, const float *floatData) throw (IOException&, IllegalArgumentException&)
 Writes time slice data into the bdata file.
void write (double t, double xmin, double dx, int npoints, const double *doubleData) throw (IOException&, IllegalArgumentException&)
 Writes time slice data into the bdata file.


Detailed Description

GridRipper bdata file writer for regular grids.

Version:
0.5, 06/11/2009
Since:
GridRipper 0.5, 06/10/2009
Author:
Peter Csizmadia

Constructor & Destructor Documentation

gridripper::io::RegularGridBDataWriter::RegularGridBDataWriter ( ostream &  os  ) 

Constructs a bdata writer.

Parameters:
os output stream

gridripper::io::RegularGridBDataWriter::~RegularGridBDataWriter (  ) 

Destructor.


Member Function Documentation

void gridripper::io::RegularGridBDataWriter::init ( int  nfields,
const string &  tname,
const string &  xname,
const string *  fields 
) throw (IllegalArgumentException&)

(Re)initializes the bdata writer.

Parameters:
nfields the number of field components
tname name of the time coordinate
xname name of the x coordinate
fields array of field names

void gridripper::io::RegularGridBDataWriter::write ( double  t,
double  xmin,
double  dx,
int  npoints,
const float *  floatData 
) throw (IOException&, IllegalArgumentException&) [inline]

Writes time slice data into the bdata file.

Parameters:
t the time
xmin the minimum x coordinate
dx the grid spacing
npoints the number of grid points on a time slice
data the data array

void gridripper::io::RegularGridBDataWriter::write ( double  t,
double  xmin,
double  dx,
int  npoints,
const double *  doubleData 
) throw (IOException&, IllegalArgumentException&) [inline]

Writes time slice data into the bdata file.

Parameters:
t the time
xmin the minimum x coordinate
dx the grid spacing
npoints the number of grid points on a time slice
data the data array


The documentation for this class was generated from the following file:

Generated on Wed Jun 17 18:46:54 2009 for GridRipper by  doxygen 1.5.6