1 // Copyright (C) 2017-20xx CEA/DEN, EDF R&D
3 // File: PlaneGCSSolver_UpdateFeature.h
4 // Created: 17 Feb 2017
5 // Author: Artem ZHIDKOV
7 #ifndef PlaneGCSSolver_UpdateFeature_H_
8 #define PlaneGCSSolver_UpdateFeature_H_
10 #include <PlaneGCSSolver_Update.h>
12 /** \class PlaneGCSSolver_UpdateFeature
14 * \brief Send events to listeners about changing a feature
16 class PlaneGCSSolver_UpdateFeature : public PlaneGCSSolver_Update
19 PlaneGCSSolver_UpdateFeature(UpdaterPtr theNext = UpdaterPtr())
20 : PlaneGCSSolver_Update(theNext)
23 /// \brief Group of entities, processed by this kind of updater
24 static const std::string& GROUP()
26 static const std::string TYPE("Feature");
30 /// \brief Attach listener
31 /// \param theObserver [in] object which want to receive notifications
32 /// \param theType [in] receive notifications about changing objects
33 /// of theType and their derivatives
34 virtual void attach(SketchSolver_Constraint* theObserver, const std::string& theType);
36 /// \brief Send notification about update of the feature to all interested
37 virtual void update(const FeaturePtr& theFeature);