gatb.core-API-0.0.0
|
#include <IProperty.hpp>
Public Member Functions | |
virtual void | visitBegin ()=0 |
virtual void | visitProperty (IProperty *prop)=0 |
virtual void | visitEnd ()=0 |
Public Member Functions inherited from SmartPointer | |
void | use () |
void | forget () |
Public Member Functions inherited from ISmartPointer | |
virtual | ~ISmartPointer () |
Additional Inherited Members | |
Protected Member Functions inherited from SmartPointer | |
SmartPointer () | |
virtual | ~SmartPointer () |
Visitor for a IProperty instance.
Define a Design Pattern Visitor for the IProperty instance.
In this case, we have only the IProperty class to visit (not a true classes hierarchy like one can find more classically for the Visitor DP), but we add two methods, one called before the IProperty visit, and one called after.
This can be seen as a improved way to iterate the IProperty items of a IProperties instance.
It is defined as a SmartPointer for easing instance life cycle management.
|
pure virtual |
Called before the true visit of the IProperty instance.
Implemented in RawDumpPropertiesVisitor, and XmlDumpPropertiesVisitor.
|
pure virtual |
Called after the true visit of the IProperty instance.
Implemented in RawDumpPropertiesVisitor, and XmlDumpPropertiesVisitor.
|
pure virtual |
Visit of the IProperty instance.
[in] | prop | : the instance to be visited. |
Implemented in RawDumpPropertiesVisitor, and XmlDumpPropertiesVisitor.