gatb.core-API-0.0.0
IPropertiesVisitor Class Referenceabstract

#include <IProperty.hpp>

Inheritance diagram for IPropertiesVisitor:
Inheritance graph

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 ()
 

Detailed Description

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.

Member Function Documentation

virtual void visitBegin ( )
pure virtual

Called before the true visit of the IProperty instance.

Implemented in RawDumpPropertiesVisitor, and XmlDumpPropertiesVisitor.

virtual void visitEnd ( )
pure virtual

Called after the true visit of the IProperty instance.

Implemented in RawDumpPropertiesVisitor, and XmlDumpPropertiesVisitor.

virtual void visitProperty ( IProperty prop)
pure virtual

Visit of the IProperty instance.

Parameters
[in]prop: the instance to be visited.

Implemented in RawDumpPropertiesVisitor, and XmlDumpPropertiesVisitor.


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