X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Integer.h;h=9bf1f3511259f122fcb2f292320915a7121b8971;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=8fadf90105bfed900557f6558a349df3fe52e27f;hpb=97917d3698f5a2f7fc9596e7c755ff8f6751e373;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Integer.h b/src/ModelHighAPI/ModelHighAPI_Integer.h index 8fadf9010..9bf1f3511 100644 --- a/src/ModelHighAPI/ModelHighAPI_Integer.h +++ b/src/ModelHighAPI/ModelHighAPI_Integer.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -40,10 +40,10 @@ public: ModelHighAPI_Integer(int theValue = 0); /// Constructor for std::string MODELHIGHAPI_EXPORT - ModelHighAPI_Integer(const std::string & theValue); + ModelHighAPI_Integer(const std::wstring & theValue); /// Constructor for char * MODELHIGHAPI_EXPORT - ModelHighAPI_Integer(const char * theValue); + ModelHighAPI_Integer(const wchar_t * theValue); /// Destructor MODELHIGHAPI_EXPORT virtual ~ModelHighAPI_Integer(); @@ -55,10 +55,13 @@ public: /// Returns a value (must be used only for attributes which support no text) MODELHIGHAPI_EXPORT virtual int intValue() const; + /// Returns a string representation of the value + MODELHIGHAPI_EXPORT virtual std::wstring string() const; + private: enum VariantType { VT_INT, VT_STRING } myVariantType; int myInt; - std::string myString; + std::wstring myString; }; //--------------------------------------------------------------------------------------