#include <CTimerMonitor.h>
Inheritance diagram for CTimerMonitor:
Public Member Functions | |
CTimerMonitor (bool am_fOneShot=true, bool am_fTimedWait=true) | |
CTimerMonitor (const string &rName, bool am_fOneShot=true, bool am_fTimedWait=true) | |
CTimerMonitor (const char *pName, bool am_fOneShot=true, bool am_fFired=false, bool am_fTimedWait=true) | |
~CTimerMonitor () | |
int | operator== (const CTimerMonitor &aCTimerMonitor) |
bool | getOneShot () const |
bool | getFired () const |
virtual CEventMonitor::result | operator() () |
void | Repeat (bool fRepeat=true) |
virtual void | setTimeout (int nTimeout=FOREVER) |
virtual string | DescribeSelf () |
Protected Member Functions | |
void | setOneShot (bool am_fOneShot) |
void | setFired (bool am_fFired) |
Private Member Functions | |
CTimerMonitor (const CTimerMonitor &aCTimerMonitor) | |
Copy construction is forbidden for now. | |
CTimerMonitor | operator= (const CTimerMonitor &aCTimerMonitor) |
Assignment is forbidden for now. | |
Private Attributes | |
bool | m_fOneShot |
bool | m_fFired |
Repeating timers essentially reset their time after each instance of an event.
Definition at line 325 of file CTimerMonitor.h.
|
Fired flag Definition at line 334 of file CTimerMonitor.h. References CNamedObject::AppendClassInfo(), m_fFired, and m_fOneShot. |
|
Definition at line 342 of file CTimerMonitor.h. References CNamedObject::AppendClassInfo(), m_fFired, and m_fOneShot. |
|
Definition at line 351 of file CTimerMonitor.h. References CNamedObject::AppendClassInfo(), m_fFired, and m_fOneShot. |
|
Definition at line 361 of file CTimerMonitor.h. |
|
Copy construction is forbidden for now.
|
|
Operation Type: Selector Purpose: Produces a string describing the object: 1. Calls CEventMonitor::DecribeSelf 2. Dumps the state of the oneshot and timed flags. Definition at line 405 of file CTimerMonitor.cpp. |
|
Definition at line 385 of file CTimerMonitor.h. |
|
Definition at line 380 of file CTimerMonitor.h. Referenced by CTimerEvent::InternalOnTimer(). |
|
Operation Type: override behavior Purpose: Waits for the timer as follows: 1. If m_fOneshot is false, this function blocks for m_tvTimeout time, then returns Occured 2. If m_fOneshot is true, but m_fFired is false, blocks for m_tvTimeout, sets m_fFired and returns Occured 3. If m_fOneshot and m_fFired are both true, returns TimedOut Implements CEventMonitor. Definition at line 323 of file CTimerMonitor.cpp. References CEventMonitor::getTimeout(), m_fFired, and NULL. |
|
Assignment is forbidden for now.
|
|
Definition at line 364 of file CTimerMonitor.h. References m_fFired, m_fOneShot, and CEventMonitor::operator==(). |
|
Operation Type: Mutator Purpose: Sets m_fOneshot to the value of its parameter. Definition at line 369 of file CTimerMonitor.cpp. References m_fFired, and m_fOneShot. Referenced by CTimerEvent::Enable(), and CTimerEvent::Repeat(). |
|
Definition at line 398 of file CTimerMonitor.h. References m_fFired. |
|
Definition at line 393 of file CTimerMonitor.h. References m_fOneShot. |
|
Operation Type: Mutator Purpose: Calls CEventMonitor::setTimeout and clears m_fFired. The wait flag FOREVER results in a MAXINT being passed to CEventMonitor::setTimeout Reimplemented from CEventMonitor. Definition at line 387 of file CTimerMonitor.cpp. References m_fFired, and CEventMonitor::setTimeout(). Referenced by CTimerEvent::CTimerEvent(), CTimerEvent::Enable(), and CTimerEvent::SetTimeout(). |
|
Oneshot flag Definition at line 328 of file CTimerMonitor.h. Referenced by CTimerMonitor(), operator()(), operator==(), Repeat(), setFired(), and setTimeout(). |
|
Definition at line 327 of file CTimerMonitor.h. Referenced by CTimerMonitor(), operator==(), Repeat(), and setOneShot(). |