X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=lib%2FcpPlugins%2FInterface%2FParameters.hxx;h=b633f879f5e33b70b0a3064e259ca0c754849b4d;hb=31f36736e1c12e7247a01bf514e528dfd1188a10;hp=0bb20c7e46ff65bbb9ff472f931822ebc364bc3c;hpb=003b7bc4f88cbe4aa6cc27fcd16b8cda94eba9be;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Parameters.hxx b/lib/cpPlugins/Interface/Parameters.hxx index 0bb20c7..b633f87 100644 --- a/lib/cpPlugins/Interface/Parameters.hxx +++ b/lib/cpPlugins/Interface/Parameters.hxx @@ -94,7 +94,8 @@ GetPoint( const TString& name, const TUint& dim ) const unsigned int d = 0; while( std::getline( str, token, ';' ) && d < dim ) { - v[ d ] = std::atof( token.c_str( ) ); + std::istringstream tok_str( token ); + tok_str >> v[ d ]; d++; } // elihw @@ -126,7 +127,8 @@ GetVector( const TString& name, const TUint& dim ) const unsigned int d = 0; while( std::getline( str, token, ';' ) && d < dim ) { - v[ d ] = std::atof( token.c_str( ) ); + std::istringstream tok_str( token ); + tok_str >> v[ d ]; d++; } // elihw @@ -203,7 +205,8 @@ GetPointList( P v; while( std::getline( str2, token2, ';' ) && d < dim ) { - v[ d ] = std::atof( token.c_str( ) ); + std::istringstream tok_str( token ); + tok_str >> v[ d ]; d++; } // elihw @@ -238,7 +241,8 @@ GetVectorList( V v; while( std::getline( str2, token2, ';' ) && d < dim ) { - v[ d ] = std::atof( token.c_str( ) ); + std::istringstream tok_str( token ); + tok_str >> v[ d ]; d++; } // elihw