Orocos Real-Time Toolkit  2.9.0
Public Member Functions | Protected Member Functions | List of all members
RTT::base::PropertyBagVisitor Class Referenceabstract

A simple introspection interface to visit PropertyBags. More...

#include <rtt/base/PropertyBagVisitor.hpp>

Inheritance diagram for RTT::base::PropertyBagVisitor:
RTT::base::PropertyIntrospection RTT::marsh::PropertyBagIntrospector RTT::marsh::CPFMarshaller< std::ostream > RTT::marsh::XMLRPCMarshaller< output_stream >

Public Member Functions

virtual ~PropertyBagVisitor ()
 
virtual void introspect (PropertyBase *p)=0
 Callback for a Property which is not a PropertyBag. More...
 
virtual void introspect (Property< PropertyBag > &p)=0
 Callback for a Property which is a PropertyBag. More...
 

Protected Member Functions

bool introspectAndDecompose (PropertyBase *t)
 The default handler to execute when an unknown type is being decomposed. More...
 

Detailed Description

A simple introspection interface to visit PropertyBags.

A class which implements this interface can call bag.identify( this );. For each property, introspect(PropertyBase* p) is called, unless the property contains a bag, then introspect(Property<PropertyBag>& p) is called, upon which you may call identify again on it's value(). The marshallers use this technique.

See also
PropertyIntrospection to have a detailed type lookup of a property.
Deprecated:
DO NOT USE. Will be removed in 2.x release series.

Definition at line 60 of file PropertyBagVisitor.hpp.

Constructor & Destructor Documentation

virtual RTT::base::PropertyBagVisitor::~PropertyBagVisitor ( )
inlinevirtual

Definition at line 72 of file PropertyBagVisitor.hpp.

Member Function Documentation

virtual void RTT::base::PropertyBagVisitor::introspect ( PropertyBase p)
pure virtual
virtual void RTT::base::PropertyBagVisitor::introspect ( Property< PropertyBag > &  p)
pure virtual

Callback for a Property which is a PropertyBag.

Implemented in RTT::marsh::PropertyBagIntrospector.

bool RTT::PropertyBagVisitor::introspectAndDecompose ( PropertyBase t)
protected

The documentation for this class was generated from the following files: