A class for marshalling a property or propertybag into a component property description, following the CORBA 3 standard. More...
#include <rtt/marsh/CPFMarshaller.hpp>
Public Member Functions | |
CPFMarshaller (std::ostream &os) | |
Construct a CPFMarshaller from a stream. | |
CPFMarshaller (const std::string &filename) | |
Construct a CPFMarshaller from a file. | |
virtual void | serialize (PropertyBase *v) |
Serialize a property. | |
virtual void | serialize (const PropertyBag &v) |
Serialize the contents of a property bag with headers and footers. | |
virtual void | flush () |
Flush all buffers, write footers. | |
void | setStream (std::ostream &_s) |
Set a new Stream. | |
std::ostream & | getStream () |
Get the current Stream. | |
Protected Member Functions | |
template<class T > | |
void | introspect (Property< T > &v) |
Unknown types must decompose theirselves into the primitives. | |
void | introspect_T (PropertyBase *t) |
The default handler to execute when an unknown type is being decomposed. | |
Protected Attributes | |
std::ostream * | s |
A class for marshalling a property or propertybag into a component property description, following the CORBA 3 standard.
Definition at line 58 of file CPFMarshaller.hpp.
virtual void RTT::CPFMarshaller< std::ostream >::flush | ( | ) | [virtual] |
Flush all buffers, write footers.
Instructs the Marshaller to flush any remaining buffered data and write a footer to indicate that serialization is done. A marshaller may choose to write nothing until this function is called, or print a summary, or anything else.
Implements RTT::Marshaller.
std::ostream & RTT::StreamProcessor< std::ostream >::getStream | ( | ) | [inline, inherited] |
Get the current Stream.
Definition at line 81 of file StreamProcessor.hpp.
void RTT::PropertyIntrospection::introspect | ( | Property< T > & | v | ) | [inline, inherited] |
Unknown types must decompose theirselves into the primitives.
Definition at line 49 of file PropertyIntrospection.inl.
References RTT::PropertyIntrospection::introspect_T().
virtual void RTT::CPFMarshaller< std::ostream >::serialize | ( | const PropertyBag & | v | ) | [virtual] |
Serialize the contents of a property bag with headers and footers.
Use this method on your 'root' PropertyBag, such that headers and footers are written.
v | The property bag to be serialized. |
Implements RTT::Marshaller.
virtual void RTT::CPFMarshaller< std::ostream >::serialize | ( | PropertyBase * | v | ) | [virtual] |
void RTT::StreamProcessor< std::ostream >::setStream | ( | std::ostream & | _s | ) | [inline, inherited] |
Set a new Stream.
_s | The stream to be processed. |
Definition at line 72 of file StreamProcessor.hpp.