OpenDaVINCI  4.15.3
ConfigurationTraits.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_WRAPPER_CONFIGURATIONTRAITS_H_
21 #define OPENDAVINCI_CORE_WRAPPER_CONFIGURATIONTRAITS_H_
22 
23 namespace odcore {
24  namespace wrapper {
25 
30  template <typename product, product config_value> struct ConfigValue
31  {
32  typedef product product_type;
33  static const product_type value = config_value;
34  };
35 
36  template < typename product_type > struct ConfigurationTraits
37  {
38  typedef void configuration;
39  };
40 
41  #define OPENDAVINCI_STATIC_CONFIGURATION(product, value) template <> struct ConfigurationTraits<product> { typedef ConfigValue<product, value> configuration; };
42  }
43 }
44 
45 #endif /* OPENDAVINCI_CORE_WRAPPER_CONFIGURATIONTRAITS_H_ */
product product_type
Definition: ConfigurationTraits.h:32
static const product_type value
Definition: ConfigurationTraits.h:33
void configuration
Definition: ConfigurationTraits.h:38
Definition: ConfigurationTraits.h:30
Definition: ConfigurationTraits.h:36