]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSetPlugin/PartSetPlugin_NewPart.h
Salome HOME
Added object, attribute and data model organization in the document.
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin_NewPart.h
index 9b824c0ee3763d0e42bad659c0d689f80911eed8..1294d4ddb170bb805f86123ede3487877ca5c4f8 100644 (file)
@@ -8,16 +8,24 @@
 #include "PartSetPlugin.h"
 #include <ModelAPI_Feature.h>
 
+/// part reference attribute
+const std::string PART_DOC_REF = "PartDocument";
+
 /**\class PartSetPlugin_NewPart
  * \ingroup DataModel
  * \brief Feature for creation of the new part in PartSet.
  */
-
 class PartSetPlugin_NewPart: public ModelAPI_Feature
 {
 public:
   /// Returns the kind of a feature
-  PARTSETPLUGIN_EXPORT virtual std::string GetKind() {return "new_part";}
+  PARTSETPLUGIN_EXPORT virtual std::string getKind() {return "new_part";}
+
+  /// Creates a new part document if needed
+  PARTSETPLUGIN_EXPORT virtual void execute();
+
+  /// Request for initialization of data model of the feature: adding all attributes
+  PARTSETPLUGIN_EXPORT virtual void initAttributes();
 
   /// Use plugin manager for features creation
   PartSetPlugin_NewPart();