X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSetPlugin%2FPartSetPlugin_Part.h;h=25af3bea7bb586245b7c1def4c684911e9630114;hb=3ccd62a2eedaf895c689d77ab4bfc698a592870e;hp=c40f1633dbef112e4456c8a5bd58d8fb974f8f98;hpb=69fae9d94ffa0fd9c37a756bf8d4736522f06214;p=modules%2Fshaper.git diff --git a/src/PartSetPlugin/PartSetPlugin_Part.h b/src/PartSetPlugin/PartSetPlugin_Part.h index c40f1633d..25af3bea7 100644 --- a/src/PartSetPlugin/PartSetPlugin_Part.h +++ b/src/PartSetPlugin/PartSetPlugin_Part.h @@ -19,7 +19,12 @@ class PartSetPlugin_Part: public ModelAPI_Feature { public: /// Returns the kind of a feature - PARTSETPLUGIN_EXPORT virtual std::string getKind() {return "Part";} + PARTSETPLUGIN_EXPORT virtual const std::string& getKind() + {static std::string MY_KIND = "Part"; return MY_KIND;} + + /// Returns to which group in the document must be added feature + PARTSETPLUGIN_EXPORT virtual const std::string& getGroup() + {static std::string MY_GROUP = "Parts"; return MY_GROUP;} /// Creates a new part document if needed PARTSETPLUGIN_EXPORT virtual void execute(); @@ -27,6 +32,8 @@ public: /// Request for initialization of data model of the feature: adding all attributes PARTSETPLUGIN_EXPORT virtual void initAttributes(); + PARTSETPLUGIN_EXPORT virtual boost::shared_ptr documentToAdd(); + /// Use plugin manager for features creation PartSetPlugin_Part(); };