Base: Add 'getTypeIfDerivedFrom' member function to Type class

This commit is contained in:
marioalexis
2021-09-01 10:10:39 -03:00
committed by wwmayer
parent 82b97374fd
commit 33b2c7d353
3 changed files with 29 additions and 11 deletions

View File

@@ -101,6 +101,8 @@ public:
bool isDerivedFrom(const Type type) const;
static int getAllDerivedFrom(const Type type, std::vector<Type>& List);
/// Returns the given named type if is derived from parent type, otherwise return bad type
static Type getTypeIfDerivedFrom(const char* name , const Type parent, bool bLoadModule=false);
static int getNumTypes(void);