SHAPER  9.12.0
PlaneGCSSolver_Update Class Referenceabstract

Send events to listeners about changing a feature. More...

Inheritance diagram for PlaneGCSSolver_Update:
Inheritance graph

Public Member Functions

 PlaneGCSSolver_Update (UpdaterPtr theNext=UpdaterPtr())
 
virtual void attach (SketchSolver_Constraint *theObserver, const std::string &theType)=0
 Attach listener. More...
 
void detach (SketchSolver_Constraint *theObserver)
 Detach listener. More...
 
virtual void update (const FeaturePtr &theFeature)=0
 Send notification about update of the feature to all interested. More...
 

Protected Attributes

UpdaterPtr myNext
 next updater, access if current one unable to process request More...
 
std::list< SketchSolver_Constraint * > myObservers
 list of observers More...
 

Detailed Description

Send events to listeners about changing a feature.

Member Function Documentation

◆ attach()

virtual void PlaneGCSSolver_Update::attach ( SketchSolver_Constraint theObserver,
const std::string &  theType 
)
pure virtual

Attach listener.

Parameters
theObserver[in] object which want to receive notifications
theType[in] receive notifications about changing objects of theType and their derivatives

Implemented in PlaneGCSSolver_UpdateFeature, and PlaneGCSSolver_UpdateCoincidence.

◆ detach()

void PlaneGCSSolver_Update::detach ( SketchSolver_Constraint theObserver)
inline

Detach listener.

◆ update()

virtual void PlaneGCSSolver_Update::update ( const FeaturePtr &  theFeature)
pure virtual

Send notification about update of the feature to all interested.

Implemented in PlaneGCSSolver_UpdateFeature, and PlaneGCSSolver_UpdateCoincidence.

Field Documentation

◆ myNext

UpdaterPtr PlaneGCSSolver_Update::myNext
protected

next updater, access if current one unable to process request

◆ myObservers

std::list<SketchSolver_Constraint*> PlaneGCSSolver_Update::myObservers
protected

list of observers