#include <AbstractDataWriter.hpp>
An abstract base class for data output. Loosely based on NetCDF api.
Definition at line 45 of file AbstractDataWriter.hpp.
| virtual AbstractDataWriter::~AbstractDataWriter |
( |
| ) |
|
|
inlinevirtual |
| virtual void AbstractDataWriter::AdvanceAlongUnlimitedDimension |
( |
| ) |
|
|
pure virtual |
| virtual void AbstractDataWriter::Close |
( |
| ) |
|
|
pure virtual |
| virtual int AbstractDataWriter::DefineFixedDimension |
( |
const std::string & |
rDimensionName, |
|
|
const std::string & |
rDimensionUnits, |
|
|
long |
dimensionSize |
|
) |
| |
|
pure virtual |
Define the fixed dimension. This method must be overridden in concrete classes.
- Parameters
-
| rDimensionName | The name of the dimension |
| rDimensionUnits | The physical units of the dimension |
| dimensionSize | The size of the dimension |
- Returns
- The identifier of the variable
Implemented in ColumnDataWriter.
| virtual int AbstractDataWriter::DefineUnlimitedDimension |
( |
const std::string & |
rDimensionName, |
|
|
const std::string & |
rDimensionUnits |
|
) |
| |
|
pure virtual |
Define the unlimited dimension, i.e. the dimension that increases as the simulation progresses. This method must be overridden in concrete classes.
- Parameters
-
| rDimensionName | The name of the unlimited dimension |
| rDimensionUnits | The physical units of the unlimited dimension |
- Returns
- The identifier of the variable
Implemented in ColumnDataWriter.
| virtual int AbstractDataWriter::DefineVariable |
( |
const std::string & |
rVariableName, |
|
|
const std::string & |
rVariableUnits |
|
) |
| |
|
pure virtual |
Define a variable. This method must be overridden in concrete classes.
- Parameters
-
| rVariableName | The name of the dimension |
| rVariableUnits | The physical units of the dimension |
- Returns
- The identifier of the variable
Implemented in ColumnDataWriter.
| virtual void AbstractDataWriter::EndDefineMode |
( |
| ) |
|
|
pure virtual |
| virtual void AbstractDataWriter::PutVariable |
( |
int |
variableID, |
|
|
double |
variableValue, |
|
|
long |
dimensionPosition = -1 |
|
) |
| |
|
pure virtual |
Input the variable value to the output file or ancillary file This method must be overridden in concrete classes.
- Parameters
-
| variableID | |
| variableValue | |
| dimensionPosition | The position in column (defaults to -1). This is required if there is a fixed dimension, and will be the position along that dimension |
Implemented in ColumnDataWriter, and ParallelColumnDataWriter.
The documentation for this class was generated from the following file: