Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
AbstractDataWriter Class Referenceabstract

#include <AbstractDataWriter.hpp>

+ Inheritance diagram for AbstractDataWriter:
+ Collaboration diagram for AbstractDataWriter:

Public Member Functions

virtual int DefineFixedDimension (const std::string &rDimensionName, const std::string &rDimensionUnits, long dimensionSize)=0
 
virtual int DefineUnlimitedDimension (const std::string &rDimensionName, const std::string &rDimensionUnits)=0
 
virtual int DefineVariable (const std::string &rVariableName, const std::string &rVariableUnits)=0
 
virtual void EndDefineMode ()=0
 
virtual void AdvanceAlongUnlimitedDimension ()=0
 
virtual void PutVariable (int variableID, double variableValue, long dimensionPosition=-1)=0
 
virtual void Close ()=0
 
virtual ~AbstractDataWriter ()
 

Detailed Description

An abstract base class for data output. Loosely based on NetCDF api.

Definition at line 45 of file AbstractDataWriter.hpp.

Constructor & Destructor Documentation

◆ ~AbstractDataWriter()

virtual AbstractDataWriter::~AbstractDataWriter ( )
inlinevirtual

Base class with virtual methods needs a virtual destructor.

Definition at line 119 of file AbstractDataWriter.hpp.

Member Function Documentation

◆ AdvanceAlongUnlimitedDimension()

virtual void AbstractDataWriter::AdvanceAlongUnlimitedDimension ( )
pure virtual

Dummy function for DoAdvanceAlongUnlimitedDimension. This method must be overridden in concrete classes.

Implemented in ColumnDataWriter, and ParallelColumnDataWriter.

◆ Close()

virtual void AbstractDataWriter::Close ( )
pure virtual

Close any open files. This method must be overridden in concrete classes.

Implemented in ColumnDataWriter, and ParallelColumnDataWriter.

◆ DefineFixedDimension()

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
rDimensionNameThe name of the dimension
rDimensionUnitsThe physical units of the dimension
dimensionSizeThe size of the dimension
Returns
The identifier of the variable

Implemented in ColumnDataWriter.

◆ DefineUnlimitedDimension()

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
rDimensionNameThe name of the unlimited dimension
rDimensionUnitsThe physical units of the unlimited dimension
Returns
The identifier of the variable

Implemented in ColumnDataWriter.

◆ DefineVariable()

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
rVariableNameThe name of the dimension
rVariableUnitsThe physical units of the dimension
Returns
The identifier of the variable

Implemented in ColumnDataWriter.

◆ EndDefineMode()

virtual void AbstractDataWriter::EndDefineMode ( )
pure virtual

End the define mode of the DataWriter. This method must be overridden in concrete classes.

Implemented in ColumnDataWriter, and ParallelColumnDataWriter.

◆ PutVariable()

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
dimensionPositionThe 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: