Salome HOME
General approach of versioning the feature. Update Boolean operations according.
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_VersionedBoolean.h
index 21db544d7024769e247b23449e131ea1831cfe6a..098509c3c4842a85aab0afd590119efc428896de 100644 (file)
@@ -36,26 +36,20 @@ class GeomAlgoAPI_MakeShapeList;
 /// \brief Feature controls a version of Boolean operations.
 class FeaturesPlugin_VersionedBoolean : public ModelAPI_Feature
 {
-public:
-  static const int THE_VERSION_0 = 0;
-  static const int THE_VERSION_1 = 20190506;
-
-  /// Attribute name of the version of Boolean feature
-  inline static const std::string& VERSION_ID()
+protected:
+  static const std::string& BOP_VERSION_9_4()
   {
-    static const std::string MY_VERSION_ID("version");
-    return MY_VERSION_ID;
+    static const std::string VERSION("v9.4");
+    return VERSION;
   }
 
-protected:
-
   /// Use plugin manager for features creation.
   FeaturesPlugin_VersionedBoolean() {}
 
   /// Initialize version field of the Boolean feature.
   /// The version is initialized for newly created features,
   /// not read from previously stored document.
-  void initVersion(const int theVersion,
+  void initVersion(const std::string& theVersion,
                    const std::shared_ptr<ModelAPI_Attribute> theObjectsAttr
                             = std::shared_ptr<ModelAPI_Attribute>(),
                    const std::shared_ptr<ModelAPI_Attribute> theToolsAttr
@@ -203,9 +197,6 @@ protected:
       const ObjectHierarchy& theToolsHierarchy,
       std::shared_ptr<GeomAlgoAPI_MakeShapeList> theMakeShapeList);
 
-  /// Return version of the feature
-  int version();
-
 private:
   void parentForShape(const GeomShapePtr& theShape,
                       const std::shared_ptr<ModelAPI_Result>& theContext,