XMLRPCMarshaller Class Template Reference

#include </home/sspr/src/www/orocos-1.0/export/build/orocos-rtt-1.2.2/build/rtt/marsh/XMLRPCMarshaller.hpp>

Inheritance diagram for XMLRPCMarshaller:

Marshaller PropertyIntrospection StreamProcessor< output_stream > PropertyBagVisitor List of all members.

Detailed Description

template<typename output_stream>
class RTT::XMLRPCMarshaller< output_stream >

Outputs a Property or PropertyBag into a text stream in the XML-RPC format.


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


Member Function Documentation

virtual void 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.

Parameters:
v The property bag to be serialized.

Implements Marshaller.

virtual void 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 Marshaller.

virtual void serialize ( PropertyBase v  )  [pure virtual, inherited]

Serialize a property.

Parameters:
v The property to be serialized.

Implemented in CPFMarshaller< std::ostream >, EmptyHeaderMarshaller, EmptyMarshaller, Orocos1Marshaller, PropertyMarshaller, SimpleMarshaller, TableHeaderMarshaller, TableMarshaller, and XMLMarshaller.

virtual void introspect ( Property< bool > &  v  )  [pure virtual, inherited]

introspect a property of type bool.

Parameters:
v The property to be introspectd.

Implemented in Orocos1Marshaller, and XMLMarshaller.

virtual void introspect ( Property< char > &  v  )  [pure virtual, inherited]

introspect a property of type char.

Parameters:
v The property to be introspectd.

Implemented in Orocos1Marshaller, and XMLMarshaller.

virtual void introspect ( Property< int > &  v  )  [pure virtual, inherited]

introspect a property of type int.

Parameters:
v The property to be introspectd.

Implemented in Orocos1Marshaller, and XMLMarshaller.

virtual void introspect ( Property< unsigned int > &  v  )  [pure virtual, inherited]

introspect a property of type unsigned int.

Parameters:
v The property to be introspectd.

Implemented in Orocos1Marshaller, and XMLMarshaller.

virtual void introspect ( Property< double > &  v  )  [pure virtual, inherited]

introspect a property of type double.

Parameters:
v The property to be introspectd.

Implemented in Orocos1Marshaller, and XMLMarshaller.

virtual void introspect ( Property< std::string > &  v  )  [pure virtual, inherited]

introspect a property of type string.

Parameters:
v The property to be introspectd.

Implemented in Orocos1Marshaller, and XMLMarshaller.

void introspect ( Property< T > &  v  )  [inherited]

Unknown types must decompose theirselves into the primitives.

See also:
TemplateTypeInfo

void setStream ( output_stream &  _s  )  [inline, inherited]

Set a new Stream.

Parameters:
_s The stream to be processed.

output_stream & getStream (  )  [inline, inherited]

Get the current Stream.

Returns:
The current Stream.


The documentation for this class was generated from the following file:
Generated on Fri Oct 19 16:27:24 2007 for Orocos by  doxygen 1.5.1