17 #ifndef MITKGETCLASSHIERARCHY_H
18 #define MITKGETCLASSHIERARCHY_H
36 template <const
char *(*)()>
41 static Small Test(SFINAE<&U::GetStaticNameOfClass> *);
48 value =
sizeof(Test<T>(
nullptr)) ==
sizeof(Small)
52 template <
typename T,
bool>
55 static std::string
value() {
return typeid(T).name(); }
81 value =
sizeof(Test<T>(
nullptr)) ==
sizeof(Small)
85 template <
typename T,
bool>
103 return std::vector<std::string>();
115 template <
typename T>
118 std::vector<std::string> result;
121 result.push_back(name);
122 std::vector<std::string> superHierarchy =
123 GetClassHierarchy<typename GetSuperclassType<T, HasTypeSuperclass<T>::value>::value>();
124 result.insert(result.end(), superHierarchy.begin(), superHierarchy.end());
129 #endif // MITKGETCLASSHIERARCHY_H
DataCollection - Class to facilitate loading/accessing structured data.
static std::string value()
itkEventMacroDeclaration(FocusChangedEvent, itk::AnyEvent) class MITKCORE_EXPORT TestingRenderingManager typedef RenderingManager Superclass
std::vector< std::string > GetClassHierarchy< void >()
static const char * GetStaticNameOfClass()
static std::string value()
std::vector< std::string > GetClassHierarchy()