X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Integer.cpp;h=c76a3a963f59c4503957bdf0441374581ebb7d7f;hb=a13f87935d2a6f52f942790b6abc874f1016c9fc;hp=8691146f9a63d6f119048661d37b7389e8930bda;hpb=97917d3698f5a2f7fc9596e7c755ff8f6751e373;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Integer.cpp b/src/ModelHighAPI/ModelHighAPI_Integer.cpp index 8691146f9..c76a3a963 100644 --- a/src/ModelHighAPI/ModelHighAPI_Integer.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Integer.cpp @@ -20,6 +20,8 @@ #include "ModelHighAPI_Integer.h" #include + +#include //-------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------- @@ -60,3 +62,13 @@ int ModelHighAPI_Integer::intValue() const // needed for array of integer, which supports no text return myInt; } + +std::string ModelHighAPI_Integer::string() const +{ + if (myVariantType == VT_STRING) + return myString; + + std::ostringstream anOut; + anOut << myInt; + return anOut.str(); +}