#include <NetcdfMarshaller.hpp>
Public Member Functions | |
std::string | composeName (std::string propertyName) |
virtual void | flush () |
NetcdfMarshaller (int ncid) | |
virtual void | serialize (const Property< PropertyBag > &v) |
virtual void | serialize (const PropertyBag &v) |
virtual void | serialize (base::PropertyBase *v) |
void | store (Property< std::vector< double > > *v) |
void | store (Property< double > *v) |
void | store (Property< float > *v) |
void | store (Property< int > *v) |
void | store (Property< short > *v) |
void | store (Property< char > *v) |
virtual | ~NetcdfMarshaller () |
Private Attributes | |
size_t | index |
int | nameless_counter |
int | ncid |
std::string | prefix |
A marsh::MarshallInterface for writing data logs into the variables of a netcdf file. The dimension of the time is increased on each flush() command. The NetcdfHeaderMarshaller creates the appropriate variables in a netcdf file.
Definition at line 18 of file NetcdfMarshaller.hpp.
RTT::NetcdfMarshaller::NetcdfMarshaller | ( | int | ncid | ) | [inline] |
Create a new NetcdfMarshaller
ncid | The ID number of the netcdf file |
Definition at line 31 of file NetcdfMarshaller.hpp.
virtual RTT::NetcdfMarshaller::~NetcdfMarshaller | ( | ) | [inline, virtual] |
Definition at line 34 of file NetcdfMarshaller.hpp.
std::string RTT::NetcdfMarshaller::composeName | ( | std::string | propertyName | ) | [inline] |
Definition at line 264 of file NetcdfMarshaller.hpp.
virtual void RTT::NetcdfMarshaller::flush | ( | ) | [inline, virtual] |
Increase unlimited time dimension
Definition at line 282 of file NetcdfMarshaller.hpp.
virtual void RTT::NetcdfMarshaller::serialize | ( | const Property< PropertyBag > & | v | ) | [inline, virtual] |
Definition at line 92 of file NetcdfMarshaller.hpp.
virtual void RTT::NetcdfMarshaller::serialize | ( | const PropertyBag & | v | ) | [inline, virtual] |
Definition at line 81 of file NetcdfMarshaller.hpp.
virtual void RTT::NetcdfMarshaller::serialize | ( | base::PropertyBase * | v | ) | [inline, virtual] |
Definition at line 36 of file NetcdfMarshaller.hpp.
void RTT::NetcdfMarshaller::store | ( | Property< std::vector< double > > * | v | ) | [inline] |
Write double array data into corresponding variable name
Specify index where the first data will be written
Specify the number of values that will be written in each dimension
Definition at line 238 of file NetcdfMarshaller.hpp.
void RTT::NetcdfMarshaller::store | ( | Property< double > * | v | ) | [inline] |
Write double data to corresponding variable name
Get netcdf variable ID from name
Write a single data value
Definition at line 213 of file NetcdfMarshaller.hpp.
void RTT::NetcdfMarshaller::store | ( | Property< float > * | v | ) | [inline] |
Write float data to corresponding variable name
Get netcdf variable ID from name
Write a single data value
Definition at line 187 of file NetcdfMarshaller.hpp.
void RTT::NetcdfMarshaller::store | ( | Property< int > * | v | ) | [inline] |
Write int data to corresponding variable name
Get netcdf variable ID from name
Write a single data value
Definition at line 162 of file NetcdfMarshaller.hpp.
void RTT::NetcdfMarshaller::store | ( | Property< short > * | v | ) | [inline] |
Write short data to corresponding variable name
Get netcdf variable ID from name
Write a single data value
Definition at line 136 of file NetcdfMarshaller.hpp.
void RTT::NetcdfMarshaller::store | ( | Property< char > * | v | ) | [inline] |
Write char data to corresponding variable name
Get netcdf variable ID from name
Write a single data value
Definition at line 111 of file NetcdfMarshaller.hpp.
size_t RTT::NetcdfMarshaller::index [private] |
Definition at line 22 of file NetcdfMarshaller.hpp.
int RTT::NetcdfMarshaller::nameless_counter [private] |
Definition at line 23 of file NetcdfMarshaller.hpp.
int RTT::NetcdfMarshaller::ncid [private] |
Definition at line 21 of file NetcdfMarshaller.hpp.
std::string RTT::NetcdfMarshaller::prefix [private] |
Definition at line 24 of file NetcdfMarshaller.hpp.