25 #ifndef PDCOM5_DETAILS_H 26 #define PDCOM5_DETAILS_H 30 #include "SizeTypeInfo.h" 31 #include "visibility.h" 37 namespace PdCom {
namespace details {
45 static constexpr
TypeInfo type_info = {
46 TypeInfo::boolean_T,
"bool",
sizeof(bool)};
51 static constexpr
TypeInfo type_info = {
52 TypeInfo::uint8_T,
"uint8_t",
sizeof(uint8_t)};
57 static constexpr
TypeInfo type_info = {
58 TypeInfo::int8_T,
"int8_t",
sizeof(int8_t)};
63 static constexpr
TypeInfo type_info = {
64 TypeInfo::uint16_T,
"uint16_t",
sizeof(uint16_t)};
69 static constexpr
TypeInfo type_info = {
70 TypeInfo::int16_T,
"int16_t",
sizeof(int16_t)};
75 static constexpr
TypeInfo type_info = {
76 TypeInfo::uint32_T,
"uint32_t",
sizeof(uint32_t)};
81 static constexpr
TypeInfo type_info = {
82 TypeInfo::int32_T,
"int32_t",
sizeof(int32_t)};
87 static constexpr
TypeInfo type_info = {
88 TypeInfo::uint64_T,
"uint64_t",
sizeof(uint64_t)};
93 static constexpr
TypeInfo type_info = {
94 TypeInfo::int64_T,
"int64_t",
sizeof(int64_t)};
99 static constexpr
TypeInfo type_info = {
100 TypeInfo::double_T,
"double",
sizeof(double)};
105 static constexpr
TypeInfo type_info = {
106 TypeInfo::single_T,
"float",
sizeof(float)};
109 template <TypeInfo::DataType dtype>
115 using value_type = bool;
120 using value_type = uint8_t;
125 using value_type = int8_t;
130 using value_type = uint16_t;
135 using value_type = int16_t;
140 using value_type = uint32_t;
145 using value_type = int32_t;
150 using value_type = uint32_t;
155 using value_type = int32_t;
160 using value_type = double;
165 using value_type = float;
181 TypeInfo::DataType dst_type,
183 TypeInfo::DataType src_type,
188 #endif // PDCOM5_DETAILS_H Type of a Variable.
Definition: SizeTypeInfo.h:33
void PDCOM5_PUBLIC copyData(void *dst, TypeInfo::DataType dst_type, const void *src, TypeInfo::DataType src_type, size_t nelem, size_t offset=0)
Data Conversion Matrix.
library version string as "major.minor.patch"
Definition: details.h:37
Definition: details.h:110