X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Folder.h;h=ba86eb0adf6bfa5fc0f947d2b9d4484968db62e1;hb=d2034a988bc73596aab1bb256ddb02ce9ad2bd5a;hp=6713ff0a04ffc1d49bad6d6e09c0834c9b9ac052;hpb=c5c451ec3d7b112e169d0e82dd5b7e8f8f05e16a;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Folder.h b/src/ModelHighAPI/ModelHighAPI_Folder.h index 6713ff0a0..ba86eb0ad 100644 --- a/src/ModelHighAPI/ModelHighAPI_Folder.h +++ b/src/ModelHighAPI/ModelHighAPI_Folder.h @@ -23,7 +23,6 @@ //-------------------------------------------------------------------------------------- #include -#include #include @@ -51,11 +50,19 @@ public: /// First feature reference std::shared_ptr firstFeature() const - { return myfirstFeature; } + { return myFirstFeature; } /// Last feature reference std::shared_ptr lastFeature() const - { return mylastFeature; } + { return myLastFeature; } + + /// Shortcut for data()->setName() + MODELHIGHAPI_EXPORT + void setName(const std::string& theName); + + /// Shortcut for data()->name() + MODELHIGHAPI_EXPORT + std::string name() const; /// Dump wrapped feature MODELHIGHAPI_EXPORT virtual void dump(ModelHighAPI_Dumper& theDumper) const; @@ -66,8 +73,8 @@ protected: private: std::shared_ptr myFolder; - std::shared_ptr myfirstFeature; - std::shared_ptr mylastFeature; + std::shared_ptr myFirstFeature; + std::shared_ptr myLastFeature; }; //--------------------------------------------------------------------------------------