From bd25303e6df8698b696a61975d9a1aff40c7231d Mon Sep 17 00:00:00 2001 From: Leonardo Florez Valencia Date: Wed, 4 Mar 2015 03:50:04 +0100 Subject: [PATCH] Parameters given as lists were corrected to avoid conflicts with the MSWin file system. --- lib/cpPlugins/Interface/Parameters.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/cpPlugins/Interface/Parameters.cxx b/lib/cpPlugins/Interface/Parameters.cxx index 54eab8d..603aca9 100644 --- a/lib/cpPlugins/Interface/Parameters.cxx +++ b/lib/cpPlugins/Interface/Parameters.cxx @@ -57,7 +57,7 @@ cpPlugins_Interface_Parameters_SetArrayMacro( Point, double ); if( pIt->second.first != Self::TYPE##List ) \ return; \ std::stringstream ss; \ - ss << pIt->second.second << v << ":"; \ + ss << pIt->second.second << v << "#"; \ pIt->second.second = ss.str( ); \ } @@ -84,7 +84,7 @@ cpPlugins_Interface_Parameters_SetListMacro( Real ); for( TUint i = 0; i < n; ++i ) \ ss << va_arg( v_lst, ATYPE ) << ","; \ va_end( v_lst ); \ - ss << ":"; \ + ss << "#"; \ pIt->second.second = ss.str( ); \ } @@ -273,7 +273,7 @@ GetValueAsStringList( std::istringstream ss( pIt->second.second ); std::string token; - while( std::getline( ss, token, ':' ) ) + while( std::getline( ss, token, '#' ) ) if( token != "" ) lst.push_back( token ); } @@ -291,7 +291,7 @@ GetValueAsBoolList( std::vector< TBool >& lst, const TString& name ) const std::istringstream ss( pIt->second.second ); std::string token; - while( std::getline( ss, token, ':' ) ) + while( std::getline( ss, token, '#' ) ) if( token != "" ) lst.push_back( TBool( std::atoi( token.c_str( ) ) == 1 ) ); } @@ -309,7 +309,7 @@ GetValueAsIntList( std::vector< TInt >& lst, const TString& name ) const std::istringstream ss( pIt->second.second ); std::string token; - while( std::getline( ss, token, ':' ) ) + while( std::getline( ss, token, '#' ) ) if( token != "" ) lst.push_back( TInt( std::atoi( token.c_str( ) ) ) ); } @@ -327,7 +327,7 @@ GetValueAsUintList( std::vector< TUint >& lst, const TString& name ) const std::istringstream ss( pIt->second.second ); std::string token; - while( std::getline( ss, token, ':' ) ) + while( std::getline( ss, token, '#' ) ) if( token != "" ) lst.push_back( TUint( std::atoi( token.c_str( ) ) ) ); } @@ -345,7 +345,7 @@ GetValueAsRealList( std::vector< TReal >& lst, const TString& name ) const std::istringstream ss( pIt->second.second ); std::string token; - while( std::getline( ss, token, ':' ) ) + while( std::getline( ss, token, '#' ) ) if( token != "" ) lst.push_back( TReal( std::atof( token.c_str( ) ) ) ); } -- 2.47.1