Go to the source code of this file.
◆ __OpenKarto_Meta_h__
| #define __OpenKarto_Meta_h__ |
◆ KARTO_AUTO_TYPE
| #define KARTO_AUTO_TYPE |
( |
|
type, |
|
|
|
registerFunc |
|
) |
| |
Value: template <> struct KartoTypeId<type> \
{ \
static
const char* Get(
kt_bool checkRegister =
true) \
{ \
if (checkRegister) \
CheckTypeRegistered(#type, registerFunc); \
return #type; \
} \
}; \
Macro for adding a C++ class to the Meta system with a registration function as a callback. The registration function will be call the first time the provided class is accessed.
Definition at line 180 of file Meta.h.
◆ KARTO_RTTI
Value: public: virtual const char* GetKartoClassId() const {return GetKartoTypeIdTemplate(this);} \
private:
Macro for getting the right runtime type info.
Definition at line 198 of file Meta.h.
◆ KARTO_TYPE
| #define KARTO_TYPE |
( |
|
type | ) |
|
Value: template <> struct KartoTypeId<type> \
{ \
static
const char* Get(
kt_bool =
true) {
return #type;} \
}; \
////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////
/** Macro for adding a C++ class to the Meta system.
Definition at line 170 of file Meta.h.