Orocos Real-Time Toolkit
2.9.0
|
Outputs a Property or PropertyBag into a text stream in the XML-RPC format. More...
#include <rtt/marsh/rtt-marsh-fwd.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. More... | |
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. More... | |
virtual void | serialize (base::PropertyBase *v)=0 |
Serialize a property. More... | |
virtual void | introspect (Property< bool > &v)=0 |
introspect a property of type bool. More... | |
virtual void | introspect (Property< char > &v)=0 |
introspect a property of type char. More... | |
virtual void | introspect (Property< int > &v)=0 |
introspect a property of type int. More... | |
virtual void | introspect (Property< unsigned int > &v)=0 |
introspect a property of type unsigned int. More... | |
virtual void | introspect (Property< long long > &v)=0 |
introspect a property of type long long. More... | |
virtual void | introspect (Property< unsigned long long > &v)=0 |
introspect a property of type unsigned long long. More... | |
virtual void | introspect (Property< double > &v)=0 |
introspect a property of type double. More... | |
virtual void | introspect (Property< std::string > &v)=0 |
introspect a property of type string. More... | |
template<class T > | |
void | introspect (Property< T > &v) |
Unknown types must decompose theirselves into the primitives. More... | |
virtual void | introspect (Property< PropertyBag > &p)=0 |
Callback for a Property which is a PropertyBag. More... | |
void | setStream (output_stream &_s) |
Set a new Stream. More... | |
output_stream & | getStream () |
Get the current Stream. More... | |
Protected Member Functions | |
virtual void | introspect (PropertyBase *p) |
Fall-back function of the last resort when the type is not decomposable and not known to the introspection interface. More... | |
void | introspect_T (PropertyBase *p) |
This function is called for any Property unknown to the introspection interface. More... | |
bool | introspectAndDecompose (PropertyBase *t) |
The default handler to execute when an unknown type is being decomposed. More... | |
Protected Attributes | |
output_stream * | s |
Outputs a Property or PropertyBag into a text stream in the XML-RPC format.
Definition at line 21 of file rtt-marsh-fwd.hpp.
|
inline |
Definition at line 66 of file XMLRPCMarshaller.hpp.
|
inlinevirtual |
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 161 of file XMLRPCMarshaller.hpp.
|
inlineinherited |
Get the current Stream.
Definition at line 82 of file StreamProcessor.hpp.
References RTT::marsh::StreamProcessor< Stream >::s.
|
protectedvirtualinherited |
Fall-back function of the last resort when the type is not decomposable and not known to the introspection interface.
Called by introspect_T and does nothing by default. You can put code inhere to handle unknown types.
Implements RTT::base::PropertyBagVisitor.
Definition at line 58 of file Property.cpp.
Referenced by RTT::extras::decomposeProperty(), and RTT::Property< T >::identify().
|
pure virtualinherited |
Callback for a Property which is a PropertyBag.
Implemented in RTT::marsh::PropertyBagIntrospector.
|
pure virtualinherited |
introspect a property of type bool.
v | The property to be introspected. |
|
pure virtualinherited |
introspect a property of type char.
v | The property to be introspected. |
|
pure virtualinherited |
introspect a property of type int.
v | The property to be introspected. |
|
pure virtualinherited |
introspect a property of type unsigned int.
v | The property to be introspected. |
|
pure virtualinherited |
introspect a property of type long long.
v | The property to be introspected. |
|
pure virtualinherited |
introspect a property of type unsigned long long.
v | The property to be introspected. |
|
pure virtualinherited |
introspect a property of type double.
v | The property to be introspected. |
|
inlinevirtual |
Definition at line 132 of file XMLRPCMarshaller.hpp.
References boost::serialization::serialize().
|
pure virtualinherited |
introspect a property of type string.
v | The property to be introspected. |
|
inlinevirtual |
Definition at line 137 of file XMLRPCMarshaller.hpp.
References boost::serialization::serialize().
|
inherited |
Unknown types must decompose theirselves into the primitives.
Definition at line 50 of file PropertyIntrospection.inl.
References RTT::base::PropertyIntrospection::introspect_T().
|
inlinevirtual |
Definition at line 142 of file XMLRPCMarshaller.hpp.
References boost::serialization::serialize().
|
inlinevirtual |
Definition at line 147 of file XMLRPCMarshaller.hpp.
References boost::serialization::serialize().
|
inlinevirtual |
Definition at line 152 of file XMLRPCMarshaller.hpp.
References boost::serialization::serialize().
|
inlinevirtual |
Definition at line 157 of file XMLRPCMarshaller.hpp.
References boost::serialization::serialize().
|
protectedinherited |
This function is called for any Property unknown to the introspection interface.
It will basically call the generic decomposition function, and if that fails, pass p to introspect() where the subclass has a last chance to handle it.
Definition at line 63 of file Property.cpp.
Referenced by RTT::base::PropertyIntrospection::introspect().
|
protectedinherited |
The default handler to execute when an unknown type is being decomposed.
Definition at line 49 of file PropertyBagVisitor.cpp.
References RTT::types::TypeInfo::buildProperty(), RTT::types::TypeInfo::decomposeType(), RTT::deletePropertyBag(), RTT::base::PropertyBase::getDataSource(), RTT::base::PropertyBase::getDescription(), RTT::base::PropertyBase::getName(), RTT::base::PropertyBase::getTypeInfo(), RTT::base::PropertyBagVisitor::introspect(), and RTT::types::propertyDecomposition().
Referenced by RTT::marsh::PropertyBagIntrospector::introspect().
|
pure virtualinherited |
Serialize a property.
v | The property to be serialized. |
Implemented in RTT::marsh::CPFMarshaller< std::ostream >, and RTT::marsh::PropertyMarshaller.
Referenced by RTT::marsh::PropertyMarshaller::serialize().
|
inlinevirtual |
Definition at line 70 of file XMLRPCMarshaller.hpp.
References RTT::Property< T >::get(), and RTT::base::PropertyBase::getName().
|
inlinevirtual |
Definition at line 76 of file XMLRPCMarshaller.hpp.
References RTT::Property< T >::get(), and RTT::base::PropertyBase::getName().
|
inlinevirtual |
Definition at line 82 of file XMLRPCMarshaller.hpp.
References RTT::Property< T >::get(), and RTT::base::PropertyBase::getName().
|
inlinevirtual |
Definition at line 88 of file XMLRPCMarshaller.hpp.
References RTT::Property< T >::get(), and RTT::base::PropertyBase::getName().
|
inlinevirtual |
Definition at line 94 of file XMLRPCMarshaller.hpp.
References RTT::Property< T >::get(), and RTT::base::PropertyBase::getName().
|
inlinevirtual |
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 100 of file XMLRPCMarshaller.hpp.
References RTT::PropertyBag::getProperties().
|
inlinevirtual |
Definition at line 114 of file XMLRPCMarshaller.hpp.
References RTT::Property< T >::get(), RTT::base::PropertyBase::getName(), and RTT::PropertyBag::getProperties().
|
inlineinherited |
Set a new Stream.
_s | The stream to be processed. |
Definition at line 73 of file StreamProcessor.hpp.
References RTT::marsh::StreamProcessor< Stream >::s.
|
protectedinherited |
Definition at line 88 of file StreamProcessor.hpp.