RTT::Orocos1Marshaller< output_stream > Class Template Reference

A marshaller which generates data compatible with the previous Orocos property system. More...

#include <rtt/marsh/Orocos1Marshaller.hpp>

Inheritance diagram for RTT::Orocos1Marshaller< output_stream >:
RTT::Marshaller RTT::PropertyIntrospection RTT::PropertyBagVisitor

List of all members.

Public Member Functions

 Orocos1Marshaller (output_stream &os)
virtual void flush ()
 Flush all buffers, write footers.
virtual void serialize (const PropertyBag &v)
 Serialize the contents of a property bag with headers and footers.
virtual void serialize (PropertyBase *b)
 Serialize a property.

Protected Member Functions

virtual void introspect (PropertyBase *pb)
 Callback for a Property which is not a PropertyBag.
virtual void introspect (Property< bool > &v)
 introspect a property of type bool.
virtual void introspect (Property< char > &v)
 introspect a property of type char.
virtual void introspect (Property< int > &v)
 introspect a property of type int.
virtual void introspect (Property< unsigned int > &v)
 introspect a property of type unsigned int.
virtual void introspect (Property< double > &v)
 introspect a property of type double.
virtual void introspect (Property< std::string > &v)
 introspect a property of type string.
virtual void introspect (Property< PropertyBag > &v)
 Callback for a Property which is a PropertyBag.
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

output_stream & _os

Detailed Description

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

A marshaller which generates data compatible with the previous Orocos property system.

Bug:
Not working yet :-)

Definition at line 54 of file Orocos1Marshaller.hpp.


Member Function Documentation

template<typename output_stream >
virtual void RTT::Orocos1Marshaller< 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 132 of file Orocos1Marshaller.hpp.

template<class T >
void RTT::PropertyIntrospection::introspect ( Property< T > &  v  )  [inline, inherited]

Unknown types must decompose theirselves into the primitives.

See also:
TemplateTypeInfo

Definition at line 49 of file PropertyIntrospection.inl.

References RTT::PropertyIntrospection::introspect_T().

template<typename output_stream >
virtual void RTT::Orocos1Marshaller< output_stream >::introspect ( Property< std::string > &  v  )  [inline, protected, virtual]

introspect a property of type string.

Parameters:
v The property to be introspectd.

Implements RTT::PropertyIntrospection.

Definition at line 113 of file Orocos1Marshaller.hpp.

References RTT::Property< T >::get(), and RTT::PropertyBase::getName().

template<typename output_stream >
virtual void RTT::Orocos1Marshaller< output_stream >::introspect ( Property< double > &  v  )  [inline, protected, virtual]

introspect a property of type double.

Parameters:
v The property to be introspectd.

Implements RTT::PropertyIntrospection.

Definition at line 103 of file Orocos1Marshaller.hpp.

References RTT::Property< T >::get(), and RTT::PropertyBase::getName().

template<typename output_stream >
virtual void RTT::Orocos1Marshaller< output_stream >::introspect ( Property< unsigned int > &  v  )  [inline, protected, virtual]

introspect a property of type unsigned int.

Parameters:
v The property to be introspectd.

Implements RTT::PropertyIntrospection.

Definition at line 92 of file Orocos1Marshaller.hpp.

References RTT::Property< T >::get(), and RTT::PropertyBase::getName().

template<typename output_stream >
virtual void RTT::Orocos1Marshaller< output_stream >::introspect ( Property< int > &  v  )  [inline, protected, virtual]

introspect a property of type int.

Parameters:
v The property to be introspectd.

Implements RTT::PropertyIntrospection.

Definition at line 81 of file Orocos1Marshaller.hpp.

References RTT::Property< T >::get(), and RTT::PropertyBase::getName().

template<typename output_stream >
virtual void RTT::Orocos1Marshaller< output_stream >::introspect ( Property< char > &  v  )  [inline, protected, virtual]

introspect a property of type char.

Parameters:
v The property to be introspectd.

Implements RTT::PropertyIntrospection.

Definition at line 74 of file Orocos1Marshaller.hpp.

References RTT::Property< T >::get(), and RTT::PropertyBase::getName().

template<typename output_stream >
virtual void RTT::Orocos1Marshaller< output_stream >::introspect ( Property< bool > &  v  )  [inline, protected, virtual]

introspect a property of type bool.

Parameters:
v The property to be introspectd.

Implements RTT::PropertyIntrospection.

Definition at line 66 of file Orocos1Marshaller.hpp.

References RTT::Property< T >::get(), and RTT::PropertyBase::getName().

template<typename output_stream >
virtual void RTT::Orocos1Marshaller< output_stream >::serialize ( PropertyBase v  )  [inline, virtual]

Serialize a property.

Parameters:
v The property to be serialized.

Implements RTT::Marshaller.

Definition at line 143 of file Orocos1Marshaller.hpp.

References RTT::PropertyBase::identify().

template<typename output_stream >
virtual void RTT::Orocos1Marshaller< 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.

Parameters:
v The property bag to be serialized.

Implements RTT::Marshaller.

Definition at line 134 of file Orocos1Marshaller.hpp.

References RTT::PropertyBag::identify().

Referenced by RTT::Orocos1Marshaller< output_stream >::introspect().


The documentation for this class was generated from the following file:
Generated on Thu Dec 23 13:22:43 2010 for Orocos Real-Time Toolkit by  doxygen 1.6.3