Outputs a Property or PropertyBag into a text stream in the XML-RPC format. More...
#include <rtt/marsh/XMLRPCMarshaller.hpp>
Public Member Functions | |
XMLRPCMarshaller (output_stream &os) | |
virtual void | serialize (const Property< bool > &v) |
virtual void | serialize (const Property< char > &v) |
virtual void | serialize (const Property< int > &v) |
virtual void | serialize (const Property< double > &v) |
virtual void | serialize (const Property< std::string > &v) |
virtual void | serialize (const PropertyBag &v) |
Serialize the contents of a property bag with headers and footers. | |
virtual void | serialize (const Property< PropertyBag > &b) |
virtual void | introspect (const Property< bool > &v) |
virtual void | introspect (const Property< char > &v) |
virtual void | introspect (const Property< int > &v) |
virtual void | introspect (const Property< double > &v) |
virtual void | introspect (const Property< std::string > &v) |
virtual void | introspect (const Property< PropertyBag > &v) |
virtual void | flush () |
Flush all buffers, write footers. | |
virtual void | serialize (PropertyBase *v)=0 |
Serialize a property. | |
virtual void | introspect (Property< bool > &v)=0 |
introspect a property of type bool. | |
virtual void | introspect (Property< char > &v)=0 |
introspect a property of type char. | |
virtual void | introspect (Property< int > &v)=0 |
introspect a property of type int. | |
virtual void | introspect (Property< unsigned int > &v)=0 |
introspect a property of type unsigned int. | |
virtual void | introspect (Property< double > &v)=0 |
introspect a property of type double. | |
virtual void | introspect (Property< std::string > &v)=0 |
introspect a property of type string. | |
template<class T > | |
void | introspect (Property< T > &v) |
Unknown types must decompose theirselves into the primitives. | |
virtual void | introspect (Property< PropertyBag > &p)=0 |
Callback for a Property which is a PropertyBag. | |
void | setStream (output_stream &_s) |
Set a new Stream. | |
output_stream & | getStream () |
Get the current Stream. | |
Protected Member Functions | |
virtual void | introspect (PropertyBase *p) |
Callback for a Property which is not a PropertyBag. | |
void | introspect_T (PropertyBase *t) |
The default handler to execute when an unknown type is being decomposed. | |
Protected Attributes | |
output_stream * | s |
Outputs a Property or PropertyBag into a text stream in the XML-RPC format.
Definition at line 60 of file XMLRPCMarshaller.hpp.
virtual void RTT::XMLRPCMarshaller< output_stream >::flush | ( | ) | [inline, 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.
Definition at line 160 of file XMLRPCMarshaller.hpp.
output_stream & RTT::StreamProcessor< output_stream >::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::PropertyIntrospection::introspect | ( | Property< std::string > & | v | ) | [pure virtual, inherited] |
introspect a property of type string.
v | The property to be introspectd. |
Implemented in RTT::Orocos1Marshaller< output_stream >, and RTT::XMLMarshaller< o_stream >.
virtual void RTT::PropertyIntrospection::introspect | ( | Property< double > & | v | ) | [pure virtual, inherited] |
introspect a property of type double.
v | The property to be introspectd. |
Implemented in RTT::Orocos1Marshaller< output_stream >, and RTT::XMLMarshaller< o_stream >.
virtual void RTT::PropertyIntrospection::introspect | ( | Property< unsigned int > & | v | ) | [pure virtual, inherited] |
introspect a property of type unsigned int.
v | The property to be introspectd. |
Implemented in RTT::Orocos1Marshaller< output_stream >, and RTT::XMLMarshaller< o_stream >.
virtual void RTT::PropertyIntrospection::introspect | ( | Property< int > & | v | ) | [pure virtual, inherited] |
introspect a property of type int.
v | The property to be introspectd. |
Implemented in RTT::Orocos1Marshaller< output_stream >, and RTT::XMLMarshaller< o_stream >.
virtual void RTT::PropertyIntrospection::introspect | ( | Property< char > & | v | ) | [pure virtual, inherited] |
introspect a property of type char.
v | The property to be introspectd. |
Implemented in RTT::Orocos1Marshaller< output_stream >, and RTT::XMLMarshaller< o_stream >.
virtual void RTT::PropertyIntrospection::introspect | ( | Property< bool > & | v | ) | [pure virtual, inherited] |
introspect a property of type bool.
v | The property to be introspectd. |
Implemented in RTT::Orocos1Marshaller< output_stream >, and RTT::XMLMarshaller< o_stream >.
virtual void RTT::Marshaller::serialize | ( | PropertyBase * | v | ) | [pure virtual, inherited] |
Serialize a property.
v | The property to be serialized. |
Implemented in RTT::CPFMarshaller< std::ostream >, RTT::EmptyHeaderMarshaller< o_stream >, RTT::EmptyMarshaller, RTT::Orocos1Marshaller< output_stream >, RTT::PropertyMarshaller, RTT::SimpleMarshaller< o_stream >, RTT::TableHeaderMarshaller< o_stream >, RTT::TableMarshaller< o_stream >, and RTT::XMLMarshaller< o_stream >.
virtual void RTT::XMLRPCMarshaller< output_stream >::serialize | ( | const PropertyBag & | v | ) | [inline, 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.
Definition at line 99 of file XMLRPCMarshaller.hpp.
References RTT::PropertyBag::getProperties().
void RTT::StreamProcessor< output_stream >::setStream | ( | output_stream & | _s | ) | [inline, inherited] |
Set a new Stream.
_s | The stream to be processed. |
Definition at line 72 of file StreamProcessor.hpp.