![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cScriptableInterface.h>
Public Member Functions | |
cScriptableInterfaceDefPtr | GetInterfaceDef (SCRIPTINTERFACEID_t nInterfaceID) const |
void | InitInterfaceDefs () |
bool | isInitInterfaces () const |
bool | SetMethodPrivLevel (const ATOMCHAR_t *pszMethod, PLEVEL_TYPE ePrivLevel) |
SCRIPTINTERFACEID_t | AddInterfaceDef (cScriptableInterfaceDef *pScriptInterface) |
bool | RemoveInterfaceDef (cScriptableInterfaceDef *pScriptInterface) |
cScriptableInterfaceDefPtr | FindInterfaceDef (const ATOMCHAR_t *pszName) const |
void | UpdateInterfaceProp (cScriptableProp *pProp) |
Late binding for dynamic props. (i.e. Attributes and Stats added ad hoc) More... | |
UNITTEST_FRIEND (cScriptableInterface) | |
![]() | |
virtual | ~CObject () |
virtual bool | isValidCheck () const noexcept |
< memory allocation and structure definitions are valid. More... | |
virtual void | AssertValid () const |
< memory allocation and structure definitions are valid. More... | |
virtual void | Serialize (cArchive &a) |
![]() | |
cHeapObject () | |
virtual | ~cHeapObject () |
bool | IsValidInsideN (INT_PTR index) const |
bool | IsValidInsidePtr (void const *pTest) const |
virtual size_t | GetHeapStatsThis (OUT ITERATE_t &iAllocCount) const |
virtual bool | isValidCheck () const noexcept |
Static Public Member Functions | |
static void GRAYCALL | InitInterfaces () |
![]() | |
static cScriptableInterfaceMgr *__stdcall | get_Single () |
static TYPE2 *__stdcall | get_SingleT () |
static cScriptableInterfaceMgr &__stdcall | I () |
![]() | |
static bool | isSingleCreated () noexcept |
static TYPE * | get_SingleU () noexcept |
static TYPE * | get_Single () |
template<class TYPE2 > | |
static TYPE2 *__stdcall | get_SingleCast () |
static TYPE & | I () noexcept |
![]() | |
static void __stdcall | ReleaseModule (HMODULE hMod) |
Protected Member Functions | |
cScriptableInterfaceMgr () | |
~cScriptableInterfaceMgr () | |
![]() | |
cSingleton (cScriptableInterfaceMgr *pObject, const TYPEINFO_t &rAddrCode=typeid(cScriptableInterfaceMgr)) noexcept | |
virtual | ~cSingleton () |
![]() | |
cSingletonStatic (TYPE *pObject) noexcept | |
virtual | ~cSingletonStatic () noexcept |
![]() | |
cSingletonRegister (const TYPEINFO_t &rAddrCode) noexcept | |
virtual | ~cSingletonRegister () |
void | RegisterSingleton () |
![]() | |
const void * | get_HeapPtr () const noexcept override |
Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr(). More... | |
Friends | |
class | cScriptableInterfaceDef |
class | cSingleton< cScriptableInterfaceMgr > |
Additional Inherited Members | |
![]() | |
static cThreadLockFast | sm_LockSingle |
common lock for all cSingleton. More... | |
![]() | |
HMODULE | m_hModuleLoaded |
What modules loaded this ? So singletons can be destroyed if DLL/SO unloads. More... | |
![]() | |
static TYPE * | sm_pThe = nullptr |
pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More... | |
Collect all the cScriptableInterfaceDef defined. make sure all the classes have been properly initialized. because AddInterfaceDef happens at static init time, we must check cAppState::isInCInit()
|
protected |
|
protected |
SCRIPTINTERFACEID_t GrayLib::cScriptableInterfaceMgr::AddInterfaceDef | ( | cScriptableInterfaceDef * | pScriptInterface | ) |
Add a class definition.
cScriptableInterfaceDefPtr GrayLib::cScriptableInterfaceMgr::FindInterfaceDef | ( | const ATOMCHAR_t * | pszName | ) | const |
|
inline |
void GrayLib::cScriptableInterfaceMgr::InitInterfaceDefs | ( | ) |
make sure all the classes are init. do this after static init but before anything else. harmless if already called.
|
static |
make sure all scripting ability is setup. harmless if already called.
|
inline |
was InitInterfaces() called?
bool GrayLib::cScriptableInterfaceMgr::RemoveInterfaceDef | ( | cScriptableInterfaceDef * | pScriptInterface | ) |
We need to be able to remove late bound (dll) loaded interfaces.
bool GrayLib::cScriptableInterfaceMgr::SetMethodPrivLevel | ( | const ATOMCHAR_t * | pszMethod, |
PLEVEL_TYPE | ePrivLevel | ||
) |
Find any methods with this name. g_ScriptInterfaceMgr adjust their PLEVEL_TYPE.
GrayLib::cScriptableInterfaceMgr::UNITTEST_FRIEND | ( | cScriptableInterface | ) |
void GrayLib::cScriptableInterfaceMgr::UpdateInterfaceProp | ( | cScriptableProp * | pProp | ) |
Late binding for dynamic props. (i.e. Attributes and Stats added ad hoc)
find all classes making use of this and re-sort them. Assume we have just added a new prop. (dynamically)
|
friend |
|
friend |