X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Interface.h;h=4dd2bca21a0d140e2ddd1e931c1391800986038a;hb=307719ccd8caf86108a00bc73b53dd896b92a50b;hp=f8644968c2b30a10e458d129e66069052490d4a5;hpb=e2e1b927dc9767f699d6d245de62cf43efa5580a;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Interface.h b/src/ModelHighAPI/ModelHighAPI_Interface.h index f8644968c..4dd2bca21 100644 --- a/src/ModelHighAPI/ModelHighAPI_Interface.h +++ b/src/ModelHighAPI/ModelHighAPI_Interface.h @@ -11,6 +11,7 @@ #include "ModelHighAPI.h" #include +#include #include #include #include @@ -18,6 +19,7 @@ class ModelAPI_Feature; class ModelAPI_Result; class ModelHighAPI_Selection; +class ModelHighAPI_Dumper; //-------------------------------------------------------------------------------------- /**\class ModelHighAPI_Interface * \ingroup CPPHighAPI @@ -45,6 +47,10 @@ public: MODELHIGHAPI_EXPORT void execute(); + /// Shortcut for feature()->data()->setName() + MODELHIGHAPI_EXPORT + void setName(const std::string& theName); + // TODO(spo): rename to selectAll() /// Return all objects of the feature MODELHIGHAPI_EXPORT @@ -58,10 +64,23 @@ public: MODELHIGHAPI_EXPORT void throwException(const std::string & theDescription); + /// Return name of getter for specified attribute + MODELHIGHAPI_EXPORT + const std::string& attributeGetter(const std::string& theAttrName); + + /// Dump wrapped feature + MODELHIGHAPI_EXPORT + virtual void dump(ModelHighAPI_Dumper& theDumper) const {} + protected: std::shared_ptr myFeature; + + std::map myAttrGetter; ///< names of attributes and their getters }; +//! Pointer on Interface object +typedef std::shared_ptr InterfacePtr; + //-------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------- #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_INTERFACE_H_ */