X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Integer.h;h=111e8fbf459164db412396e86743bbdb0f446e22;hb=5c13fa0e68725babdd09541b028c186896e27b4f;hp=7650b125644b7abc36923c9ac377f7f2a36ff42d;hpb=f98f887290d4e2b4bd6618389911e82b6b9674f3;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Integer.h b/src/ModelHighAPI/ModelHighAPI_Integer.h index 7650b1256..111e8fbf4 100644 --- a/src/ModelHighAPI/ModelHighAPI_Integer.h +++ b/src/ModelHighAPI/ModelHighAPI_Integer.h @@ -1,5 +1,6 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D // Name : ModelHighAPI_Integer.h -// Purpose: +// Purpose: // // History: // 29/03/16 - Sergey POKHODENKO - Creation of the file @@ -12,8 +13,6 @@ #include #include - -#include //-------------------------------------------------------------------------------------- class ModelAPI_AttributeInteger; //-------------------------------------------------------------------------------------- @@ -26,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); @@ -41,8 +40,13 @@ 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: - boost::variant myValue; + enum VariantType { VT_INT, VT_STRING } myVariantType; + int myInt; + std::string myString; }; //--------------------------------------------------------------------------------------