![]() |
HeartBeat Class ReferenceTimed event demonstration.
More...
|
Public Member Functions | |
HeartBeat (IEventHandler &) | |
~HeartBeat () | |
void | OnEvent (int id) |
Private Attributes | |
int | m_id |
Definition at line 29 of file HeartBeat.h.
HeartBeat::HeartBeat | ( | IEventHandler & | ) |
Definition at line 27 of file HeartBeat.cpp.
References m_id.
00028 :IEventOwner(h) 00029 { 00030 m_id = h.AddEvent(this, 2, 0); 00031 }
HeartBeat::~HeartBeat | ( | ) |
void HeartBeat::OnEvent | ( | int | id | ) |
Definition at line 39 of file HeartBeat.cpp.
References m_id.
00040 { 00041 if (id == m_id) 00042 { 00043 // printf("HeartBeat\n"); 00044 m_id = EventHandler().AddEvent(this, 2, 0); 00045 } 00046 }
int HeartBeat::m_id [private] |