-// 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
{
}
-ModelHighAPI_Integer::ModelHighAPI_Integer(const std::string & theValue)
+ModelHighAPI_Integer::ModelHighAPI_Integer(const std::wstring & theValue)
: myVariantType(VT_STRING)
, myString(theValue)
{
}
-ModelHighAPI_Integer::ModelHighAPI_Integer(const char * theValue)
+ModelHighAPI_Integer::ModelHighAPI_Integer(const wchar_t * theValue)
: myVariantType(VT_STRING)
, myString(theValue)
{
return myInt;
}
-std::string ModelHighAPI_Integer::string() const
+std::wstring ModelHighAPI_Integer::string() const
{
if (myVariantType == VT_STRING)
return myString;
- std::ostringstream anOut;
+ std::wostringstream anOut;
anOut << myInt;
return anOut.str();
}