Salome HOME
[bos #29467] [EDF] (2022-T1) Logging of SALOME usage: specific log in SALOME
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_Recover.h
index 28c8e180488c4135d90b185bc6afb7691a03a022..3f41823c0fd1c5c51a8a3d85ee049cda35d47cfa 100644 (file)
@@ -1,8 +1,21 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
-
-// File:        FeaturesAPI_Recover.h
-// Created:     04 August 2016
-// Author:      Mikhail Ponikarov
+// Copyright (C) 2014-2023  CEA, EDF
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #ifndef FeaturesAPI_Recover_H_
 #define FeaturesAPI_Recover_H_
@@ -14,6 +27,7 @@
 #include <ModelHighAPI_Interface.h>
 #include <ModelHighAPI_Macro.h>
 
+class ModelHighAPI_Dumper;
 class ModelHighAPI_Reference;
 
 /// \class FeaturesAPI_Recover
@@ -31,16 +45,17 @@ public:
   FeaturesAPI_Recover(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                       const ModelHighAPI_Reference& theBaseFeature,
                       const std::list<ModelHighAPI_Selection>& theRecoveredList,
-                      const bool thePersistent = false);
+                      const bool theRecoverCompound = false);
 
   /// Destructor.
   FEATURESAPI_EXPORT
   virtual ~FeaturesAPI_Recover();
 
-  INTERFACE_3(FeaturesPlugin_Recover::ID(),
-              baseFeature, FeaturesPlugin_Recover::BASE_FEATURE(), ModelAPI_AttributeReference, /** Concealed feature */,
-              recoveredList, FeaturesPlugin_Recover::RECOVERED_ENTITIES(), ModelAPI_AttributeRefList, /** Recover list*/,
-              isPersistent, FeaturesPlugin_Recover::PERSISTENT(), ModelAPI_AttributeBoolean, /** Is persistent flag */)
+  INTERFACE_2(FeaturesPlugin_Recover::ID(),
+              baseFeature, FeaturesPlugin_Recover::BASE_FEATURE(),
+              ModelAPI_AttributeReference, /** Concealed feature */,
+              recoveredList, FeaturesPlugin_Recover::RECOVERED_ENTITIES(),
+              ModelAPI_AttributeRefList, /** Recover list*/)
 
   /// Set base feature.
   FEATURESAPI_EXPORT
@@ -50,10 +65,9 @@ public:
   FEATURESAPI_EXPORT
   void setRecoveredList(const std::list<ModelHighAPI_Selection>& theRecoverList);
 
-  /// Set auxiliary
+  /// Dump wrapped feature
   FEATURESAPI_EXPORT
-  void setIsPersistent(bool thePersistent);
-
+  virtual void dump(ModelHighAPI_Dumper& theDumper) const;
 };
 
 /// Pointer on Recover object.
@@ -65,6 +79,6 @@ FEATURESAPI_EXPORT
 RecoverPtr addRecover(const std::shared_ptr<ModelAPI_Document>& thePart,
                       const ModelHighAPI_Reference& theBaseFeature,
                       const std::list<ModelHighAPI_Selection>& theRecoveredList,
-                      const bool thePersistent = false);
+                      const bool theRecoverCompound = false);
 
 #endif // FeaturesAPI_Recover_H_