#include <RegularGridBDataWriter.h>
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. | |
| gridripper::io::RegularGridBDataWriter::RegularGridBDataWriter | ( | ostream & | os | ) |
Constructs a bdata writer.
| os | output stream |
| gridripper::io::RegularGridBDataWriter::~RegularGridBDataWriter | ( | ) |
Destructor.
| void gridripper::io::RegularGridBDataWriter::init | ( | int | nfields, | |
| const string & | tname, | |||
| const string & | xname, | |||
| const string * | fields | |||
| ) | throw (IllegalArgumentException&) |
(Re)initializes the bdata writer.
| 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.
| 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.
| 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 |
1.5.6