34 #ifndef CARTOBASE_TYPE_DATATYPEINFO_H 
   35 #define CARTOBASE_TYPE_DATATYPEINFO_H 
   50 template<
class DataType>
 
   60     static inline uint8_t 
samples();
 
   65     static inline uint8_t 
depth();
 
   75 template<
class DataType>
 
   78   return DataTypeTraitsType::channelcount;
 
   81 template<
class DataType>
 
   84   return sizeof(DataType) / DataTypeTraitsType::channelcount;
 
   87 template<
class DataType>
 
DataTypeInfo class is a hint to access data type information.
static uint8_t samples()
Number of channels for the DataType.
static uint8_t depth()
Depth of channels for the DataType.
static const std::string channelType()
std::string that represents the channel type for the DataType
carto::DataTypeTraits< DataType > DataTypeTraitsType
static std::string dataType()
Properties of data types.