6 #ifndef _INC_cXObjDef_H
7 #define _INC_cXObjDef_H
31 #define cXObjDefProp(a,b,c) P_##a,
40 #define cXObjDefMethod(a,b,c) M_##a,
57 void put_SymNamePrivate(
cAtomRef aSymName);
64 virtual HRESULT DisposeThis()
override;
65 STDMETHOD(SetObjStateLoaded)();
81 STDMETHOD(put_SymName)(
cAtomRef aSymName,
bool bOverwrite =
false)
override;
106 return get_Description();
114 return isObjStateLoaded();
123 virtual HRESULT ReloadXObject();
125 virtual void CopyXObject(
const cXObjDef* pDef);
132 int iCount = SUPER_t::get_BaseRefCount();
148 return SUPER_t::GetHeapStats(iAllocCount) + m_aSymName.
GetHeapStats(iAllocCount);
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define UNREFERENCED_PARAMETER(P)
< _WIN32 type thing. get rid of stupid warning.
Definition: SysTypes.h:299
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
#define CSCRIPT_CLASS_DEF1(TYPE, _BASETYPE)
Definition: cScriptableInterface.h:277
Definition: cScriptableInterface.h:97
Definition: cVariant.h:26
Definition: cXObjDef.h:17
STDMETHOD_(cStringA, get_SymName)() const override
virtual size_t GetHeapStats(OUT ITERATE_t &iAllocCount) const override
allocs for all children. does NOT include sizeof(*this)
Definition: cXObjDef.h:145
virtual cString get_Description() const
Definition: cXObjDef.h:92
CHEAPOBJECT_IMPL
Definition: cXObjDef.h:27
virtual void UnloadXObject()
Definition: cXObjDef.h:116
cAtomRef get_SymNameA() const
Definition: cXObjDef.h:73
TIMESYS_t m_timeLastUsed
system time when last used. for caching
Definition: cXObjDef.h:47
virtual int get_BaseRefCount() const override
Definition: cXObjDef.h:127
P_TYPE_
Definition: cXObjDef.h:30
@ P_QTY
Definition: cXObjDef.h:34
M_TYPE_
Definition: cXObjDef.h:38
@ M_QTY
Definition: cXObjDef.h:43
virtual bool isResourceLoaded() const
Definition: cXObjDef.h:111
STDMETHOD_(cString, get_Name)() const override
Definition: cXObjDef.h:86
bool hasSymName() const noexcept
Get the SYMNAME of the resource item. (Used for saving,scripting) may be number or name.
Definition: cXObjDef.h:68
virtual void put_Description(cString sDescription)
Definition: cXObjDef.h:97
virtual cString get_DescriptionFull() const
Definition: cXObjDef.h:103
Definition: cXObjMgr.h:135
Definition: cXObject.h:78
bool IsEmpty() const
Definition: cAtom.h:137
size_t GetHeapStats(OUT ITERATE_t &iAllocCount) const
Definition: cAtom.cpp:171
Definition: IScriptableObj.h:62
class __DECL_IMPORT cXObjDef
Definition: cXObject.h:34
@ XObjState_Init
0=just initialize. No values loaded yet.
Definition: cXObject.h:59
cRefPtr< cXObjDef > cXObjDefPtr
Definition: cXObjDef.h:152
HASHCODE32_t UID_t
Sort of the same as a HASHCODE_t. not the same as UIDINDEX_t.
Definition: cUID.h:18
< The main namespace for all Core functions.
Definition: GrayCore.cpp:14
int ITERATE_t
like size_t but signed
Definition: Index.h:28
char ATOMCHAR_t
the char form (UNICODE or not) for an atom. (for symbolic names)
Definition: StrConst.h:15
UINT32 TIMESYS_t
TIMESYS_t = The normal system tick timer. milli-seconds since start of system/app ?
Definition: cTimeSys.h:27
cStringT< GChar_t > cString
Definition: cString.h:636