type_name.h
Go to the documentation of this file.
1
/*
2
* Copyright 2015-2020 CNRS-UM LIRMM, CNRS-AIST JRL
3
*/
4
5
#pragma once
6
7
#include <
mc_rtc/utils_api.h
>
8
9
#include <string>
10
#include <typeinfo>
11
12
namespace
mc_rtc
13
{
14
15
namespace
internal
16
{
17
18
MC_RTC_UTILS_DLLAPI
std::string
demangle
(
const
char
* name);
19
20
}
// namespace internal
21
27
template
<
typename
T>
28
std::string
type_name
()
29
{
30
return
internal::demangle
(
typeid
(T).name());
31
}
32
33
}
// namespace mc_rtc
mc_rtc::type_name
std::string type_name()
Definition:
type_name.h:28
MC_RTC_UTILS_DLLAPI
#define MC_RTC_UTILS_DLLAPI
Definition:
utils_api.h:50
utils_api.h
mc_rtc::internal::demangle
MC_RTC_UTILS_DLLAPI std::string demangle(const char *name)
mc_rtc
Definition:
Contact.h:87
include
mc_rtc
type_name.h
Generated by
1.8.17