- if ( pixel == "char" ) this->_GD0< char >( );
- else if( pixel == "short" ) this->_GD0< short >( );
- else if( pixel == "int" ) this->_GD0< int >( );
- else if( pixel == "long" ) this->_GD0< long >( );
- else if( pixel == "uchar" ) this->_GD0< unsigned char >( );
- else if( pixel == "ushort" ) this->_GD0< unsigned short >( );
- else if( pixel == "uint" ) this->_GD0< unsigned int >( );
- else if( pixel == "ulong" ) this->_GD0< unsigned long >( );
- else if( pixel == "float" ) this->_GD0< float >( );
- else if( pixel == "double" ) this->_GD0< double >( );
- else this->_Error( "Invalid pixel type." );
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_char
+ if( pixel == "char" ) success = this->_GD0< char >( );
+ if( pixel == "uchar" ) success = this->_GD0< unsigned char >( );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_char
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_short
+ if( pixel == "short" ) success = this->_GD0< short >( );
+ if( pixel == "ushort" ) success = this->_GD0< unsigned short >( );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_short
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_int
+ if( pixel == "int" ) success = this->_GD0< int >( );
+ if( pixel == "uint" ) success = this->_GD0< unsigned int >( );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_int
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_long
+ if( pixel == "long" ) success = this->_GD0< long >( );
+ if( pixel == "ulong" ) success = this->_GD0< unsigned long >( );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_long
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_float
+ if( pixel == "float" ) success = this->_GD0< float >( );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_float
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_double
+ if( pixel == "double" ) success = this->_GD0< double >( );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_double
+ if( !success )
+ this->_Error( "Invalid pixel type." );