#include <OpaqueTypelibMarshaller.hpp>
Public Types | |
typedef orogen_transports::TypelibMarshallerBase::Handle | MarshallingHandle |
typedef OpaqueType | opaque_t |
typedef TypelibType | typelib_t |
Public Member Functions | |
MarshallingHandle * | createSample () |
OpaqueTypelibMarshaller (std::string const &typelib_name, std::string const &opaque_name, Typelib::Registry const ®istry) | |
void | refreshOrocosSample (MarshallingHandle *handle) |
void | refreshTypelibSample (MarshallingHandle *handle) |
void | setTypelibSample (MarshallingHandle *handle, uint8_t *typelib_data, bool refresh_orocos=true) |
Definition at line 180 of file OpaqueTypelibMarshaller.hpp.
typedef orogen_transports::TypelibMarshallerBase::Handle orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 1 >::MarshallingHandle |
Reimplemented from orogen_transports::OpaqueTypelibMarshallerBase< TypelibType, OpaqueType >.
Definition at line 182 of file OpaqueTypelibMarshaller.hpp.
typedef OpaqueType orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 1 >::opaque_t |
Reimplemented from orogen_transports::OpaqueTypelibMarshallerBase< TypelibType, OpaqueType >.
Definition at line 183 of file OpaqueTypelibMarshaller.hpp.
typedef TypelibType orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 1 >::typelib_t |
Reimplemented from orogen_transports::OpaqueTypelibMarshallerBase< TypelibType, OpaqueType >.
Definition at line 184 of file OpaqueTypelibMarshaller.hpp.
orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 1 >::OpaqueTypelibMarshaller | ( | std::string const & | typelib_name, |
std::string const & | opaque_name, | ||
Typelib::Registry const & | registry | ||
) | [inline] |
Definition at line 186 of file OpaqueTypelibMarshaller.hpp.
MarshallingHandle* orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 1 >::createSample | ( | ) | [inline, virtual] |
Creates a sample handler, which is an opaque type used to read/write/marshal data. Unlike createHandle(), the handle returned by this method already contains a preallocated data sample. It can therefore be used as-is for readPort.
Implements orogen_transports::TypelibMarshallerBase.
Definition at line 189 of file OpaqueTypelibMarshaller.hpp.
void orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 1 >::refreshOrocosSample | ( | MarshallingHandle * | data | ) | [inline, virtual] |
Updates the value of data->orocos_sample based on the data in data->typelib_sample
Implements orogen_transports::TypelibMarshallerBase.
Definition at line 206 of file OpaqueTypelibMarshaller.hpp.
void orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 1 >::refreshTypelibSample | ( | MarshallingHandle * | handle | ) | [inline, virtual] |
Updates the value of data->typelib_sample based on the data in data->orocos_sample
Implements orogen_transports::TypelibMarshallerBase.
Definition at line 194 of file OpaqueTypelibMarshaller.hpp.
void orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 1 >::setTypelibSample | ( | MarshallingHandle * | data, |
uint8_t * | typelib_data, | ||
bool | refresh_orocos = true |
||
) | [inline, virtual] |
Updates the sample handler by using a data sample that Typelib understands. +typelib_data+ must be pointing to an object whose type is the one returned by getMarshallingType.
The handle will then point directly to the given data sample, i.e. calls to read
might modify that sample directly.
The ownership of typelib_data
is retained by the caller. I.e. it has to delete it.
Implements orogen_transports::TypelibMarshallerBase.
Definition at line 217 of file OpaqueTypelibMarshaller.hpp.