X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Double.h;h=be36487e0f81adcc90cd2c8aea986c507fe3b9fd;hb=d335fa85ad1b38088f011253a3189276556cc959;hp=9fe5df5369c272b49df1379bd0ba261fd5739f10;hpb=e05cf89c2b21303c51d9102315a82ac095eed3df;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Double.h b/src/ModelHighAPI/ModelHighAPI_Double.h index 9fe5df536..be36487e0 100644 --- a/src/ModelHighAPI/ModelHighAPI_Double.h +++ b/src/ModelHighAPI/ModelHighAPI_Double.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 @@ -41,10 +41,10 @@ public: ModelHighAPI_Double(double theValue = 0.); /// Constructor for std::string MODELHIGHAPI_EXPORT - ModelHighAPI_Double(const std::string & theValue); + ModelHighAPI_Double(const std::wstring & theValue); /// Constructor for char * MODELHIGHAPI_EXPORT - ModelHighAPI_Double(const char * theValue); + ModelHighAPI_Double(const wchar_t * theValue); /// Destructor MODELHIGHAPI_EXPORT virtual ~ModelHighAPI_Double(); @@ -63,10 +63,13 @@ public: /// Value of the attribute MODELHIGHAPI_EXPORT double value() const; + /// Returns a string representation of the value + MODELHIGHAPI_EXPORT virtual std::wstring string() const; + private: enum VariantType { VT_DOUBLE, VT_STRING } myVariantType; double myDouble; - std::string myString; + std::wstring myString; }; //--------------------------------------------------------------------------------------