Salome HOME
Remove 'override' keyword due to non-supported by old version of GCC
[modules/shaper.git] / src / SketchSolver / PlaneGCSSolver / PlaneGCSSolver_UpdateFeature.h
1 // Copyright (C) 2017-20xx CEA/DEN, EDF R&D
2
3 // File:    PlaneGCSSolver_UpdateFeature.h
4 // Created: 17 Feb 2017
5 // Author:  Artem ZHIDKOV
6
7 #ifndef PlaneGCSSolver_UpdateFeature_H_
8 #define PlaneGCSSolver_UpdateFeature_H_
9
10 #include <PlaneGCSSolver_Update.h>
11
12 /** \class   PlaneGCSSolver_UpdateFeature
13  *  \ingroup Plugins
14  *  \brief   Send events to listeners about changing a feature
15  */
16 class PlaneGCSSolver_UpdateFeature : public PlaneGCSSolver_Update
17 {
18 public:
19   PlaneGCSSolver_UpdateFeature(UpdaterPtr theNext = UpdaterPtr())
20     : PlaneGCSSolver_Update(theNext)
21   {}
22
23   /// \brief Group of entities, processed by this kind of updater
24   static const std::string& GROUP()
25   {
26     static const std::string TYPE("Feature");
27     return TYPE;
28   }
29
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);
35
36   /// \brief Send notification about update of the feature to all interested
37   virtual void update(const FeaturePtr& theFeature);
38 };
39
40 #endif