EventAnalysis  1.3.0
InheritsFrom.h
Go to the documentation of this file.
1 /*
2  * InheritsFrom.hpp
3  *
4  * Created on: 04 Dec 2017
5  * Author: Nicola Mori
6  */
7 
8 #ifndef INHERITSFROM_H_
9 #define INHERITSFROM_H_
10 
11 #include <typeinfo>
12 
13 namespace EA {
14 
24 bool InheritsFrom(const std::type_info &type, const std::type_info &baseType);
25 
41 bool InheritsFrom(void *objPtr, const std::type_info &baseType);
42 
43 } // namespace EA
44 
45 #endif /* INHERITSFROM_H_ */
IncludeFileExc.h IncludeFileExc class declaration.
Definition: Algorithm.h:21
bool InheritsFrom(const std::type_info &type, const std::type_info &baseType)
Check if a given type inherits from a given class.
Definition: InheritsFrom.cpp:20