20 template <UINT32 _SIGVALID = 0xCA11AB11>
29 const size_t m_nSizeofThis;
33 : m_nVer(nVer), m_nSizeofThis(nSizeofThis)
46 if (!SUPER_t::isValidSignature())
48 if (nVer != m_nVer || nSizeofThis != m_nSizeofThis)
55 #define COBJECT_IsValidCheck() cMem::IsValid(this,4)
59 #define ASSERT_VALID(p) (p)->AssertValid()
61 #define ASSERT_VALID(p) ASSERT((p)!=nullptr)
64 #define COBJECT_IsValidCheck() CObject::isValidCheck()
105 #define DECLARE_DYNAMIC(c)
106 #define IMPLEMENT_DYNAMIC(c, cb)
#define GRAYCORE_LINK
Definition: GrayCore.h:47
#define IS_TYPE_OF(t, p)
Definition: PtrCast.h:23
#define DECLSPEC_NOVTABLE
Definition: SysTypes.h:322
#define ASSERT(exp)
Definition: cDebugAssert.h:87
#define DEBUG_CHECK(exp)
Definition: cDebugAssert.h:90
virtual void AssertValid() const
< memory allocation and structure definitions are valid.
Definition: cObject.h:93
virtual bool isValidCheck() const noexcept
< memory allocation and structure definitions are valid.
Definition: cObject.h:77
virtual ~CObject()
Definition: cObject.h:74
Definition: cArchive.h:20
cObjectSignature(UINT32 nVer, size_t nSizeofThis)
Definition: cObject.h:32
bool IsValidSignature(UINT32 nVer, size_t nSizeofThis) const
Definition: cObject.h:40
~cObjectSignature()
Definition: cObject.h:36
< The main namespace for all Core functions.
Definition: GrayCore.cpp:14
class __DECL_IMPORT cArchive
Definition: cString.h:28
static bool __stdcall IsValid(const void *pData, size_t nSize=1, bool bWriteAccess=false) noexcept
Definition: cMem.cpp:33