#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 117 of file OpaqueTypelibMarshaller.hpp.
typedef orogen_transports::TypelibMarshallerBase::Handle orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 0 >::MarshallingHandle |
Reimplemented from orogen_transports::OpaqueTypelibMarshallerBase< TypelibType, OpaqueType >.
Definition at line 119 of file OpaqueTypelibMarshaller.hpp.
typedef OpaqueType orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 0 >::opaque_t |
Reimplemented from orogen_transports::OpaqueTypelibMarshallerBase< TypelibType, OpaqueType >.
Definition at line 120 of file OpaqueTypelibMarshaller.hpp.
typedef TypelibType orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 0 >::typelib_t |
Reimplemented from orogen_transports::OpaqueTypelibMarshallerBase< TypelibType, OpaqueType >.
Definition at line 121 of file OpaqueTypelibMarshaller.hpp.
orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 0 >::OpaqueTypelibMarshaller | ( | std::string const & | typelib_name, | |
std::string const & | opaque_name, | |||
Typelib::Registry const & | registry | |||
) | [inline] |
Definition at line 123 of file OpaqueTypelibMarshaller.hpp.
MarshallingHandle* orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 0 >::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 126 of file OpaqueTypelibMarshaller.hpp.
void orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 0 >::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 146 of file OpaqueTypelibMarshaller.hpp.
void orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 0 >::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 131 of file OpaqueTypelibMarshaller.hpp.
void orogen_transports::OpaqueTypelibMarshaller< TypelibType, OpaqueType, 0 >::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 158 of file OpaqueTypelibMarshaller.hpp.