#include <NetcdfHeaderMarshaller.hpp>
Public Member Functions | |
std::string | composeName (std::string propertyName) |
virtual void | flush () |
NetcdfHeaderMarshaller (int ncid, int dimsid) | |
virtual void | serialize (base::PropertyBase *v) |
virtual void | serialize (const PropertyBag &v) |
virtual void | serialize (const Property< PropertyBag > &v) |
void | store (Property< char > *v) |
void | store (Property< short > *v) |
void | store (Property< int > *v) |
void | store (Property< float > *v) |
void | store (Property< double > *v) |
void | store (Property< std::vector< double > > *v) |
virtual | ~NetcdfHeaderMarshaller () |
Private Attributes | |
int | dimsid |
int | nameless_counter |
int | ncid |
int | ncopen |
std::string | prefix |
A marsh::MarshallInterface for generating variables in a netcdf dataset
Definition at line 20 of file NetcdfHeaderMarshaller.hpp.
RTT::NetcdfHeaderMarshaller::NetcdfHeaderMarshaller | ( | int | ncid, |
int | dimsid | ||
) | [inline] |
Definition at line 31 of file NetcdfHeaderMarshaller.hpp.
virtual RTT::NetcdfHeaderMarshaller::~NetcdfHeaderMarshaller | ( | ) | [inline, virtual] |
Definition at line 33 of file NetcdfHeaderMarshaller.hpp.
std::string RTT::NetcdfHeaderMarshaller::composeName | ( | std::string | propertyName | ) | [inline] |
Definition at line 270 of file NetcdfHeaderMarshaller.hpp.
virtual void RTT::NetcdfHeaderMarshaller::flush | ( | ) | [inline, virtual] |
Implements RTT::marsh::MarshallInterface.
Definition at line 288 of file NetcdfHeaderMarshaller.hpp.
virtual void RTT::NetcdfHeaderMarshaller::serialize | ( | base::PropertyBase * | v | ) | [inline, virtual] |
Implements RTT::marsh::MarshallInterface.
Definition at line 35 of file NetcdfHeaderMarshaller.hpp.
virtual void RTT::NetcdfHeaderMarshaller::serialize | ( | const PropertyBag & | v | ) | [inline, virtual] |
Check if the netcdf file is already in define mode. Increase counter every time serialize function is called and no errors occurs.
Decrease counter, if zero enter data mode else stay in define mode
Implements RTT::marsh::MarshallInterface.
Definition at line 80 of file NetcdfHeaderMarshaller.hpp.
virtual void RTT::NetcdfHeaderMarshaller::serialize | ( | const Property< PropertyBag > & | v | ) | [inline, virtual] |
Definition at line 119 of file NetcdfHeaderMarshaller.hpp.
void RTT::NetcdfHeaderMarshaller::store | ( | Property< char > * | v | ) | [inline] |
Create a variable of data type char
Create a new variable with only one dimension i.e. the unlimited time dimension
Definition at line 138 of file NetcdfHeaderMarshaller.hpp.
void RTT::NetcdfHeaderMarshaller::store | ( | Property< short > * | v | ) | [inline] |
Create a variable of data type short
Create a new variable with only one dimension i.e. the unlimited time dimension
Definition at line 158 of file NetcdfHeaderMarshaller.hpp.
void RTT::NetcdfHeaderMarshaller::store | ( | Property< int > * | v | ) | [inline] |
Create a variable of data type int
Create a new variable with only one dimension i.e. the unlimited time dimension
Definition at line 178 of file NetcdfHeaderMarshaller.hpp.
void RTT::NetcdfHeaderMarshaller::store | ( | Property< float > * | v | ) | [inline] |
Create a variable of data type float
Create a new variable with only one dimension i.e. the unlimited time dimension
Definition at line 198 of file NetcdfHeaderMarshaller.hpp.
void RTT::NetcdfHeaderMarshaller::store | ( | Property< double > * | v | ) | [inline] |
Create a variable of data type double
Create a new variable with only one dimension i.e. the unlimited time dimension
Definition at line 218 of file NetcdfHeaderMarshaller.hpp.
void RTT::NetcdfHeaderMarshaller::store | ( | Property< std::vector< double > > * | v | ) | [inline] |
Create a variable with two dimensions of data type double
Definition at line 239 of file NetcdfHeaderMarshaller.hpp.
int RTT::NetcdfHeaderMarshaller::dimsid [private] |
Definition at line 26 of file NetcdfHeaderMarshaller.hpp.
int RTT::NetcdfHeaderMarshaller::nameless_counter [private] |
Definition at line 23 of file NetcdfHeaderMarshaller.hpp.
int RTT::NetcdfHeaderMarshaller::ncid [private] |
Definition at line 25 of file NetcdfHeaderMarshaller.hpp.
int RTT::NetcdfHeaderMarshaller::ncopen [private] |
Definition at line 27 of file NetcdfHeaderMarshaller.hpp.
std::string RTT::NetcdfHeaderMarshaller::prefix [private] |
Definition at line 24 of file NetcdfHeaderMarshaller.hpp.