NetcdfMarshaller Class Reference

A Marshaller for writing data logs into the variables of a netcdf file. More...

#include <NetcdfMarshaller.hpp>

List of all members.

Public Member Functions

 NetcdfMarshaller (int ncid)
 Create a new NetcdfMarshaller.
virtual void serialize (PropertyBase *v)
virtual void serialize (const PropertyBag &v)
virtual void serialize (const Property< PropertyBag > &v)
void store (Property< char > *v)
 Write char data to corresponding variable name.
void store (Property< short > *v)
 Write short data to corresponding variable name.
void store (Property< int > *v)
 Write int data to corresponding variable name.
void store (Property< float > *v)
 Write float data to corresponding variable name.
void store (Property< double > *v)
 Write double data to corresponding variable name.
void store (Property< std::vector< double > > *v)
 Write double array data into corresponding variable name.
std::string composeName (std::string propertyName)
virtual void flush ()
 Increase unlimited time dimension.

Detailed Description

A Marshaller 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.


Constructor & Destructor Documentation

NetcdfMarshaller ( int  ncid  )  [inline]

Create a new NetcdfMarshaller.

Parameters:
ncid The ID number of the netcdf file

Definition at line 31 of file NetcdfMarshaller.hpp.


Member Function Documentation

void 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 244 of file NetcdfMarshaller.hpp.

void 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 219 of file NetcdfMarshaller.hpp.

void 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 193 of file NetcdfMarshaller.hpp.

void 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 168 of file NetcdfMarshaller.hpp.

void 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 142 of file NetcdfMarshaller.hpp.

void 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 117 of file NetcdfMarshaller.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Dec 23 15:05:29 2010 for OrocosComponentLibrary by  doxygen 1.6.3