X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FBaseObjects%2FParameters.cxx;h=cfb5f83b220aaa3b0a8488887932aa2df34c8deb;hb=4985f4ba986f600298676866c5099b2f84bee50b;hp=227898cddc843e4dadfd8750b4a4caf3e8822e98;hpb=9f494b26ae4e5de45b4c2119a10de67ac0beeedf;p=cpPlugins.git diff --git a/lib/cpPlugins/BaseObjects/Parameters.cxx b/lib/cpPlugins/BaseObjects/Parameters.cxx index 227898c..cfb5f83 100644 --- a/lib/cpPlugins/BaseObjects/Parameters.cxx +++ b/lib/cpPlugins/BaseObjects/Parameters.cxx @@ -197,12 +197,8 @@ void cpPlugins::BaseObjects::Parameters:: ConfigureAsRealTypesChoices( const std::string& name ) { std::vector< std::string > choices; -#ifdef cpPlugins_CONFIG_REAL_TYPES_float choices.push_back( "float" ); -#endif // cpPlugins_CONFIG_REAL_TYPES_float -#ifdef cpPlugins_CONFIG_REAL_TYPES_double choices.push_back( "double" ); -#endif // cpPlugins_CONFIG_REAL_TYPES_double this->ConfigureAsChoices( name, choices ); } @@ -211,22 +207,14 @@ void cpPlugins::BaseObjects::Parameters:: ConfigureAsIntTypesChoices( const std::string& name ) { std::vector< std::string > choices; -#ifdef cpPlugins_CONFIG_INTEGER_TYPES_char choices.push_back( "char" ); choices.push_back( "uchar" ); -#endif // cpPlugins_CONFIG_INTEGER_TYPES_char -#ifdef cpPlugins_CONFIG_INTEGER_TYPES_short choices.push_back( "short" ); choices.push_back( "ushort" ); -#endif // cpPlugins_CONFIG_INTEGER_TYPES_short -#ifdef cpPlugins_CONFIG_INTEGER_TYPES_int choices.push_back( "int" ); choices.push_back( "uint" ); -#endif // cpPlugins_CONFIG_INTEGER_TYPES_int -#ifdef cpPlugins_CONFIG_INTEGER_TYPES_long choices.push_back( "long" ); choices.push_back( "ulong" ); -#endif // cpPlugins_CONFIG_INTEGER_TYPES_long this->ConfigureAsChoices( name, choices ); } @@ -235,28 +223,16 @@ void cpPlugins::BaseObjects::Parameters:: ConfigureAsScalarTypesChoices( const std::string& name ) { std::vector< std::string > choices; -#ifdef cpPlugins_CONFIG_INTEGER_TYPES_char choices.push_back( "char" ); choices.push_back( "uchar" ); -#endif // cpPlugins_CONFIG_INTEGER_TYPES_char -#ifdef cpPlugins_CONFIG_INTEGER_TYPES_short choices.push_back( "short" ); choices.push_back( "ushort" ); -#endif // cpPlugins_CONFIG_INTEGER_TYPES_short -#ifdef cpPlugins_CONFIG_INTEGER_TYPES_int choices.push_back( "int" ); choices.push_back( "uint" ); -#endif // cpPlugins_CONFIG_INTEGER_TYPES_int -#ifdef cpPlugins_CONFIG_INTEGER_TYPES_long choices.push_back( "long" ); choices.push_back( "ulong" ); -#endif // cpPlugins_CONFIG_INTEGER_TYPES_long -#ifdef cpPlugins_CONFIG_REAL_TYPES_float choices.push_back( "float" ); -#endif // cpPlugins_CONFIG_REAL_TYPES_float -#ifdef cpPlugins_CONFIG_REAL_TYPES_double choices.push_back( "double" ); -#endif // cpPlugins_CONFIG_REAL_TYPES_double this->ConfigureAsChoices( name, choices ); }