表示一个事件对象
More...
#include <SEventSet.h>
表示一个事件对象
Definition at line 12 of file SEventSet.h.
◆ SEvent()
SNSBEGIN SEvent::SEvent |
( |
DWORD | dwEventID, |
|
|
LPCWSTR | pszEventName ) |
构造函数
- Parameters
-
dwEventID | 事件ID |
pszEventName | 事件名称 |
Definition at line 8 of file SEventSet.cpp.
◆ ~SEvent()
◆ findSlotFunctor()
int SEvent::findSlotFunctor |
( |
const IEvtSlot * | slot | ) |
|
|
protected |
查找事件槽对象
- Parameters
-
- Returns
- 找到的事件槽索引,未找到返回-1
Definition at line 42 of file SEventSet.cpp.
◆ fire()
void SEvent::fire |
( |
IEvtArgs * | args | ) |
|
◆ GetID()
◆ GetName()
◆ GetScriptHandler()
SStringA SEvent::GetScriptHandler |
( |
| ) |
const |
◆ SetScriptHandler()
void SEvent::SetScriptHandler |
( |
const SStringA & | strScriptHandler | ) |
|
设置脚本处理程序
- Parameters
-
strScriptHandler | 脚本处理程序字符串 |
Definition at line 78 of file SEventSet.cpp.
◆ subscribe()
BOOL SEvent::subscribe |
( |
const IEvtSlot * | slot | ) |
|
订阅事件
- Parameters
-
- Returns
- 成功返回TRUE,失败返回FALSE
Definition at line 23 of file SEventSet.cpp.
◆ unsubscribe()
BOOL SEvent::unsubscribe |
( |
const IEvtSlot * | slot | ) |
|
取消订阅事件
- Parameters
-
- Returns
- 成功返回TRUE,失败返回FALSE
Definition at line 31 of file SEventSet.cpp.
◆ m_dwEventID
DWORD SEvent::m_dwEventID |
|
protected |
◆ m_evtSlots
SArray<IEvtSlot *> SEvent::m_evtSlots |
|
protected |
◆ m_strEventName
◆ m_strScriptHandler
The documentation for this class was generated from the following files: