Orocos Real-Time Toolkit
2.9.0
|
This class fills up a given bag with the results of an introspection. More...
#include <rtt/marsh/PropertyBagIntrospector.hpp>
Public Member Functions | |
PropertyBagIntrospector (PropertyBag &bag) | |
Create a new Introspector, saving the results in a bag. More... | |
virtual | ~PropertyBagIntrospector () |
void | reset (PropertyBag &new_bag) |
Reset to do a new introspection. More... | |
void | introspect (const PropertyBag &v) |
Use this entry function to inspect a bag. More... | |
virtual void | introspect (base::PropertyBase *v) |
Callback for a Property which is not a PropertyBag. More... | |
virtual void | introspect (Property< PropertyBag > &v) |
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... | |
This class fills up a given bag with the results of an introspection.
Definition at line 57 of file PropertyBagIntrospector.hpp.
PropertyBagIntrospector::PropertyBagIntrospector | ( | PropertyBag & | bag | ) |
Create a new Introspector, saving the results in a bag.
The bag will contain decomposed clones of the original.
bag | The bag to safe the results in. |
Definition at line 44 of file PropertyBagIntrospector.cpp.
|
virtual |
Definition at line 49 of file PropertyBagIntrospector.cpp.
void PropertyBagIntrospector::introspect | ( | const PropertyBag & | v | ) |
Use this entry function to inspect a bag.
v | the properties of this bag will be inspected. |
Definition at line 69 of file PropertyBagIntrospector.cpp.
References RTT::PropertyBag::identify().
Referenced by RTT::marsh::PropertyLoader::store().
|
virtual |
Callback for a Property which is not a PropertyBag.
Implements RTT::base::PropertyBagVisitor.
Definition at line 74 of file PropertyBagIntrospector.cpp.
References RTT::base::PropertyBase::clone(), and RTT::base::PropertyBagVisitor::introspectAndDecompose().
|
virtual |
Callback for a Property which is a PropertyBag.
Implements RTT::base::PropertyBagVisitor.
Definition at line 83 of file PropertyBagIntrospector.cpp.
References RTT::PropertyBag::add(), RTT::Property< T >::get(), RTT::base::PropertyBase::getDescription(), RTT::base::PropertyBase::getName(), and RTT::Property< T >::value().
|
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 introspect().
void PropertyBagIntrospector::reset | ( | PropertyBag & | new_bag | ) |
Reset to do a new introspection.
new_bag | The new bag to save the results in. |
Definition at line 58 of file PropertyBagIntrospector.cpp.