#include <CTimerEvent.h>
Inheritance diagram for CTimerEvent:
Public Member Functions | |
CTimerEvent (unsigned long nms, bool fRepeat) | |
CTimerEvent (const char *pName, unsigned long nms, bool fRepeat) | |
CTimerEvent (const STD(string)&rName, unsigned long nms, bool fRepeat) | |
virtual | ~CTimerEvent () |
CTimerMonitor & | getMonitor () |
Allow manipulation of the event monitor:. | |
CTimerGenericReactor & | getReactor () |
Allow manipulation of the event reactor:. | |
void | Enable (unsigned long nms, bool fRepeat=true) |
void | Enable () |
void | SetTimeout (unsigned long nms) |
void | Repeat (bool fRepeat=true) |
virtual void | OnTimer () |
void | InternalOnTimer () |
STD (string) DescribeSelf() | |
Private Member Functions | |
CTimerEvent (const CTimerEvent &rhs) | |
CTimerEvent & | operator= (const CTimerEvent &rhs) |
int | operator== (const CTimerEvent &rhs) |
Private Attributes | |
CTimerMonitor & | m_rMonitor |
Refer to the timer monitor maintained. | |
CTimerGenericReactor & | m_rReactor |
Refers to the callback reactor. |
Definition at line 319 of file CTimerEvent.h.
|
Construct an anonymous CTimerEvent.
Definition at line 341 of file CTimerEvent.cpp. References getMonitor(), getReactor(), m_rMonitor, m_rReactor, CEvent::setReactivity(), and CTimerMonitor::setTimeout(). |
|
Construct an named CTimerEvent where the name is given as an char* p C String.
Definition at line 358 of file CTimerEvent.cpp. References m_rMonitor, CEvent::setReactivity(), and CTimerMonitor::setTimeout(). |
|
|
|
Destroy a timer event. This involves simply deleteing the monitor and the reactor: Definition at line 391 of file CTimerEvent.cpp. |
|
|
|
Enable execution of the event. This is intended to be called from outside the Event thread. This allows us to directly schedule the object as a thread, rather than going through the rigmarole required by CEvent::Schedule
Reimplemented from CEvent. Definition at line 371 of file CTimerEvent.h. References CEvent::Enable(). |
|
Overload for Enable specific to timers... since one shot timers are allowed, this member is supplied to setup the timer and start it in one operation.
Definition at line 407 of file CTimerEvent.cpp. References CEvent::Enable(), m_rMonitor, CTimerMonitor::Repeat(), CEvent::setReactivity(), and CTimerMonitor::setTimeout(). |
|
Allow manipulation of the event monitor:.
Reimplemented from CEvent. Definition at line 361 of file CTimerEvent.h. Referenced by CTimerEvent(). |
|
Allow manipulation of the event reactor:.
Reimplemented from CEvent. Definition at line 364 of file CTimerEvent.h. Referenced by CTimerEvent(). |
|
Called directly from the reactor.
Definition at line 452 of file CTimerEvent.cpp. References CTimerMonitor::getOneShot(), m_rMonitor, OnTimer(), and CEvent::setEnable(). Referenced by CTimerEvent::CTimerGenericReactor::OnEvent(). |
|
Called internally - user overridable event code. No-OP for now: Definition at line 467 of file CTimerEvent.cpp. Referenced by InternalOnTimer(). |
|
|
|
|
|
Set the flag indicating if the timer is a repeating or single shot:
Definition at line 432 of file CTimerEvent.cpp. References m_rMonitor, and CTimerMonitor::Repeat(). |
|
Re-export the members of the monitor which allow control over the timer. This member sets the timeout.
Definition at line 421 of file CTimerEvent.cpp. References m_rMonitor, CEvent::setReactivity(), and CTimerMonitor::setTimeout(). |
|
The name of the object Reimplemented from CEvent. |
|
Refer to the timer monitor maintained.
Reimplemented from CEvent. Definition at line 337 of file CTimerEvent.h. Referenced by CTimerEvent(), Enable(), InternalOnTimer(), Repeat(), and SetTimeout(). |
|
Refers to the callback reactor.
Reimplemented from CEvent. Definition at line 338 of file CTimerEvent.h. Referenced by CTimerEvent(). |