Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cXObject2.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cXObject2_H
7 #define _INC_cXObject2_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "cXObjEventSinks.h"
13 
14 namespace GrayLib
15 {
17  : public cXObject
18  {
22 
23  typedef cXObject SUPER_t;
24 
25  protected:
26  cXObjEventSinks m_aEventSink; // event handlers are attached to this? cXObject takes on some externally scripted behavior.
27  protected:
28  cXObject2(UID_t nUID = cUID::k_CLEAR, cXObjDef* pBaseDef = nullptr, cScriptableInterfaceDef* pEventSinkInterfaceDef = nullptr);
29 
30  public:
31  STDMETHOD(s_EventSinkAdd)(cXObjDef* pXObjDef, bool bRemove = false) override;
32  STDMETHOD(s_Invoke)(const cScriptableMethod* pMethod, const cVariant& vArgs, OUT cVariant& vValRet) override;
33  };
34 }
35 
36 #endif
37 
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
Definition: cScriptableInterface.h:300
Definition: cScriptableObj.h:26
Definition: cScriptableInterface.h:97
static const UID_t k_CLEAR
Hard coded UID_t values.
Definition: cUID.h:32
Definition: cVariant.h:26
Definition: cXObjDef.h:17
Definition: cXObjEventSinks.h:17
Definition: cXObject2.h:18
cXObjEventSinks m_aEventSink
Definition: cXObject2.h:26
Definition: cXObject.h:78
Definition: cMesh.h:22
HASHCODE32_t UID_t
Sort of the same as a HASHCODE_t. not the same as UIDINDEX_t.
Definition: cUID.h:18