#include <PropertyMarshaller.hpp>
Public Member Functions | |
virtual void | flush () |
PropertyMarshaller (const std::string &filename) | |
virtual void | serialize (base::PropertyBase *v) |
virtual void | serialize (const PropertyBag &v) |
~PropertyMarshaller () | |
Private Member Functions | |
PropertyMarshaller (const PropertyMarshaller &) | |
Private Attributes | |
MarshallInterface * | m |
A class for writing a property or propertybag into file. The file format used by Orocos is the 'Component Property Format'.
Definition at line 53 of file PropertyMarshaller.hpp.
RTT::marsh::PropertyMarshaller::PropertyMarshaller | ( | const PropertyMarshaller & | ) | [private] |
RTT::PropertyMarshaller::PropertyMarshaller | ( | const std::string & | filename | ) |
Construct a PropertyMarshaller which writes to a file.
filename |
Definition at line 51 of file PropertyMarshaller.cpp.
Definition at line 62 of file PropertyMarshaller.cpp.
void RTT::PropertyMarshaller::flush | ( | ) | [virtual] |
Flush all buffers, write footers. Instructs the MarshallInterface 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::marsh::MarshallInterface.
Definition at line 81 of file PropertyMarshaller.cpp.
void RTT::PropertyMarshaller::serialize | ( | base::PropertyBase * | v | ) | [virtual] |
Serialize a property.
v | The property to be serialized. |
Implements RTT::marsh::MarshallInterface.
Definition at line 67 of file PropertyMarshaller.cpp.
void RTT::PropertyMarshaller::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::marsh::MarshallInterface.
Definition at line 74 of file PropertyMarshaller.cpp.
Definition at line 56 of file PropertyMarshaller.hpp.