X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Integer.h;fp=src%2FModelHighAPI%2FModelHighAPI_Integer.h;h=111e8fbf459164db412396e86743bbdb0f446e22;hb=2895c0fa0d69afc25ef86a300ef00d850a3df832;hp=35fb0d77f20fd0be0f4cb532b04ab062a812646b;hpb=075177feab4dc988e7ef2ec1825b8b6dbbc0c431;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Integer.h b/src/ModelHighAPI/ModelHighAPI_Integer.h index 35fb0d77f..111e8fbf4 100644 --- a/src/ModelHighAPI/ModelHighAPI_Integer.h +++ b/src/ModelHighAPI/ModelHighAPI_Integer.h @@ -25,7 +25,7 @@ class ModelHighAPI_Integer public: /// Constructor for int MODELHIGHAPI_EXPORT - ModelHighAPI_Integer(int theValue = 0.); + ModelHighAPI_Integer(int theValue = 0); /// Constructor for std::string MODELHIGHAPI_EXPORT ModelHighAPI_Integer(const std::string & theValue); @@ -40,6 +40,9 @@ public: MODELHIGHAPI_EXPORT virtual void fillAttribute(const std::shared_ptr & theAttribute) const; + /// Returns a value (must be used only for attributes which support no text) + MODELHIGHAPI_EXPORT virtual int intValue() const; + private: enum VariantType { VT_INT, VT_STRING } myVariantType; int myInt;