Salome HOME
oubli
[modules/shaper.git] / src / PartSetAPI / PartSetAPI_Part.h
index b65fce9b9053aeae6fde879f03744bc59e4b45aa..b31de2785d7bc20b549fd2ddaf944227e86d02c5 100644 (file)
@@ -1,8 +1,21 @@
-// Name   : PartSetAPI_Part.h
-// Purpose: 
+// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
+//
+// 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
 //
-// History:
-// 16/06/16 - Sergey POKHODENKO - Creation of the file
 
 #ifndef SRC_PARTSETAPI_PARTSETAPI_PART_H_
 #define SRC_PARTSETAPI_PARTSETAPI_PART_H_
@@ -36,6 +49,10 @@ public:
   /// Return document
   PARTSETAPI_EXPORT
   std::shared_ptr<ModelAPI_Document> document() const;
+
+  /// Dump wrapped feature
+  PARTSETAPI_EXPORT
+  virtual void dump(ModelHighAPI_Dumper& theDumper) const;
 };
 
 //! Pointer on Part object
@@ -51,13 +68,13 @@ PartPtr addPart(const std::shared_ptr<ModelAPI_Document> & thePartSet);
  * \brief Duplicate Part feature
  */
 PARTSETAPI_EXPORT
-PartPtr duplicatePart(const std::shared_ptr<ModelAPI_Document> & thePart);
+PartPtr duplicatePart(const ModelHighAPI_Interface& thePart);
 
 /**\ingroup CPPHighAPI
  * \brief Remove Part feature
  */
 PARTSETAPI_EXPORT
-void removePart(const std::shared_ptr<ModelAPI_Document> & thePart);
+void removePart(const ModelHighAPI_Interface& thePart);
 
 //--------------------------------------------------------------------------------------
 //--------------------------------------------------------------------------------------