20 #ifndef PlaneGCSSolver_Update_H_
21 #define PlaneGCSSolver_Update_H_
23 #include <ModelAPI_Feature.h>
31 typedef std::shared_ptr<PlaneGCSSolver_Update> UpdaterPtr;
54 std::list<SketchSolver_Constraint*>::iterator anIt =
myObservers.begin();
56 if (*anIt == theObserver) {
62 myNext->detach(theObserver);
66 virtual void update(
const FeaturePtr& theFeature) = 0;
Send events to listeners about changing a feature.
Definition: PlaneGCSSolver_Update.h:38
UpdaterPtr myNext
next updater, access if current one unable to process request
Definition: PlaneGCSSolver_Update.h:69
std::list< SketchSolver_Constraint * > myObservers
list of observers
Definition: PlaneGCSSolver_Update.h:70
void detach(SketchSolver_Constraint *theObserver)
Detach listener.
Definition: PlaneGCSSolver_Update.h:53
virtual void attach(SketchSolver_Constraint *theObserver, const std::string &theType)=0
Attach listener.
virtual void update(const FeaturePtr &theFeature)=0
Send notification about update of the feature to all interested.
Converts SketchPlugin constraint to the constraint applicable for solver.
Definition: SketchSolver_Constraint.h:39