40 static const char * names[] = {
"None",
"Bool",
"Int8_t",
"Int16_t",
"Int32_t",
"Int64_t",
41 "Uint8_t",
"Uint16_t",
"Uint32_t",
"Uint64_t",
"Float",
"Double",
42 "String",
"Vector2d",
"Vector3d",
"Vector6d",
"VectorXd",
"Quaterniond",
43 "PTransformd",
"ForceVecd",
"MotionVecd",
"VectorDouble",
nullptr};
49 const size_t idx =
static_cast<size_t>(t);
60 #define IMPL_MAPPING(CPPT, ENUMV) \
62 struct GetLogType<CPPT> \
64 static constexpr mc_rtc::log::LogType type = mc_rtc::log::LogType::ENUMV; \
94 template<
int N,
int _Options,
int _MaxRows,
int _MaxCols>
95 struct GetLogType<Eigen::Matrix<double, N, 1, _Options, _MaxRows, _MaxCols>>
106 template<std::
size_t N>
112 template<
typename Type,
int Options,
typename Str
ideType>
133 template<
typename...>
140 static constexpr
bool value =
false;
143 template<
typename T,
typename MemberT>
152 static constexpr
bool value =
false;
155 template<
typename T,
typename MethodRetT>
166 template<
typename T,
typename =
void>
169 static constexpr
bool value =
false;
175 using ret_type =
typename std::result_of<T()>::type;
189 template<LogType type>
192 static_assert(
static_cast<std::underlying_type_t<LogType>
>(type)
193 == std::numeric_limits<std::underlying_type_t<LogType>>::max(),
194 "This must be specialized for the provided LogType value");
197 #define IMPL_MAPPING(ENUMV, CPPT) \
199 struct log_type_to_type<LogType::ENUMV> \
228 template<LogType type>
typename log_type_to_type< type >::type log_type_to_type_t
Definition: utils.h:229
void void_t
Definition: utils.h:134
const char * LogTypeName(LogType t)
Definition: utils.h:47
const char ** LogTypeNames()
Definition: utils.h:38
LogType
Definition: utils.h:13
Definition: MessagePackBuilder.h:87
static constexpr mc_rtc::log::LogType type
Definition: utils.h:57
static void write(const T &data, mc_rtc::MessagePackBuilder &builder)
Definition: utils.h:185
typename std::result_of< T()>::type ret_type
Definition: utils.h:175
typename std::decay< ret_type >::type base_type
Definition: utils.h:176
static constexpr bool value
Definition: utils.h:169
static constexpr bool value
Definition: utils.h:152
static constexpr bool value
Definition: utils.h:130
static constexpr LogType type
Definition: utils.h:129