#include <string>
// -------------------------------------------------------------------------
-#define cpPlugins_CONFIG_BOOLEAN_TYPES "@cpPlugins_CONFIG_BOOLEAN_TYPES@"
-#define cpPlugins_CONFIG_INTEGER_TYPES "@cpPlugins_CONFIG_INTEGER_TYPES@"
-#define cpPlugins_CONFIG_REAL_TYPES "@cpPlugins_CONFIG_REAL_TYPES@"
#define cpPlugins_CONFIG_PROCESS_DIMENSIONS "@cpPlugins_CONFIG_PROCESS_DIMENSIONS@"
#define cpPlugins_CONFIG_VISUAL_DIMENSIONS "@cpPlugins_CONFIG_VISUAL_DIMENSIONS@"
#define cpPlugins_CONFIG_COLOR_PIXELS "@cpPlugins_CONFIG_COLOR_PIXELS@"
-#define cpPlugins_CONFIG_VECTORS "@cpPlugins_CONFIG_VECTORS@"
-#define cpPlugins_CONFIG_DIFFUSIONTENSORS "@cpPlugins_CONFIG_DIFFUSIONTENSORS@"
-#define cpPlugins_CONFIG_MATRICES "@cpPlugins_CONFIG_MATRICES@"
+#define cpPlugins_CONFIG_VECTOR_PIXELS "@cpPlugins_CONFIG_VECTOR_PIXELS@"
#define cpPlugins_ALL_CONFIGS "@cpPlugins_ALL_CONFIGS@"
#define cpPlugins_CONFIG_NUMBER_OF_FILES @cpPlugins_CONFIG_NUMBER_OF_FILES@
// -----------------------------------------------------------------------
inline void LoadDefinitions( TCommands& commands )
{
+ // Dimensions
commands[ "define" ].push_back(
- std::string( "int_types=" ) +
- std::string( cpPlugins_CONFIG_INTEGER_TYPES )
- );
- commands[ "define" ].push_back(
- std::string( "real_types=" ) +
- std::string( cpPlugins_CONFIG_REAL_TYPES )
- );
- commands[ "define" ].push_back(
- std::string( "process_dims=" ) +
+ std::string( "pdims=" ) +
std::string( cpPlugins_CONFIG_PROCESS_DIMENSIONS )
);
commands[ "define" ].push_back(
- std::string( "visual_dims=" ) +
+ std::string( "vdims=" ) +
std::string( cpPlugins_CONFIG_VISUAL_DIMENSIONS )
);
+
+ // Base c++ types
commands[ "define" ].push_back(
- std::string( "color_pixels=" ) +
- std::string( cpPlugins_CONFIG_COLOR_PIXELS )
+ std::string( "int_types=char;short;int;long" )
);
commands[ "define" ].push_back(
- std::string( "vectors=" ) +
- std::string( cpPlugins_CONFIG_VECTORS )
+ std::string( "uint_types=unsigned #int_types#" )
);
commands[ "define" ].push_back(
- std::string( "diff_tensors=" ) +
- std::string( cpPlugins_CONFIG_DIFFUSIONTENSORS )
+ std::string( "sint_types=signed char" )
);
commands[ "define" ].push_back(
- std::string( "matrices=" ) +
- std::string( cpPlugins_CONFIG_MATRICES )
+ std::string( "real_types=float;double" )
);
- if( std::string( cpPlugins_CONFIG_INTEGER_TYPES ) != "" )
- commands[ "define" ].push_back(
- std::string( "uint_types=unsigned #int_types#" )
- );
commands[ "define" ].push_back(
std::string(
- "scalar_pixels=#int_types#;#uint_types#;#real_types#"
+ "scalar_types=#int_types#;#uint_types#;#real_types#"
)
);
}