cmlabs::TimerManager Class Reference

#include <TimerManager.h>

Inheritance diagram for cmlabs::TimerManager:

Inheritance graph
[legend]
Collaboration diagram for cmlabs::TimerManager:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TimerManager ()
virtual ~TimerManager ()
Objectclone () const
bool unitTest ()
JString createTimer (JString strData, long ms)
 Create a String Timer without callback.
JString createTimer (Object *obj, long ms)
 Create an Object Timer without callback.
JString createTimer (JString strData, long ms, void(*function)(JString id))
 Create a String Timer with a function callback.
JString createTimer (Object *obj, long ms, void(*function)(Object *object))
 Create an Object Timer with a function callback.
JString createTimer (JString strData, long ms, TimerReceiver *receiver)
 Create a String Timer with a TimerReceiver callback.
JString createTimer (Object *obj, long ms, TimerObjectReceiver *receiver)
 Create an Object Timer with a TimerObjectReceiver callback.
void doMaintenance ()
bool cancel (JString id)
 Cancel Timer.
bool cancelAll ()
 Cancel all Timers.
long waitFor (JString id)
 Wait for Timer.
long msLeft (JString id)
 How long left of Timer.
int getActiveTimerCount ()
 Active Timer count.
Collection getActiveTimerIDs ()
 Get the active Timer IDs.
bool receiveTimerObject (Object *obj)
 For testing only.

Protected Member Functions

TimergetTimer (JString id)

Protected Attributes

ObjectDictionarytimerList


Detailed Description

Definition at line 41 of file TimerManager.h.


Constructor & Destructor Documentation

cmlabs::TimerManager::TimerManager (  ) 

Definition at line 33 of file TimerManager.cpp.

cmlabs::TimerManager::~TimerManager (  )  [virtual]

Definition at line 39 of file TimerManager.cpp.


Member Function Documentation

Object* cmlabs::TimerManager::clone (  )  const [virtual]

Implements cmlabs::Object.

Definition at line 47 of file TimerManager.h.

bool cmlabs::TimerManager::unitTest (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 232 of file TimerManager.cpp.

JString cmlabs::TimerManager::createTimer ( JString  strData,
long  ms 
)

Create a String Timer without callback.

Definition at line 48 of file TimerManager.cpp.

JString cmlabs::TimerManager::createTimer ( Object obj,
long  ms 
)

Create an Object Timer without callback.

Definition at line 59 of file TimerManager.cpp.

JString cmlabs::TimerManager::createTimer ( JString  strData,
long  ms,
void(*)(JString id function 
)

Create a String Timer with a function callback.

Definition at line 70 of file TimerManager.cpp.

JString cmlabs::TimerManager::createTimer ( Object obj,
long  ms,
void(*)(Object *object function 
)

Create an Object Timer with a function callback.

Definition at line 81 of file TimerManager.cpp.

JString cmlabs::TimerManager::createTimer ( JString  strData,
long  ms,
TimerReceiver receiver 
)

Create a String Timer with a TimerReceiver callback.

Definition at line 92 of file TimerManager.cpp.

JString cmlabs::TimerManager::createTimer ( Object obj,
long  ms,
TimerObjectReceiver receiver 
)

Create an Object Timer with a TimerObjectReceiver callback.

Definition at line 103 of file TimerManager.cpp.

void cmlabs::TimerManager::doMaintenance (  ) 

Definition at line 114 of file TimerManager.cpp.

bool cmlabs::TimerManager::cancel ( JString  id  ) 

Cancel Timer.

Definition at line 149 of file TimerManager.cpp.

bool cmlabs::TimerManager::cancelAll (  ) 

Cancel all Timers.

Definition at line 167 of file TimerManager.cpp.

long cmlabs::TimerManager::waitFor ( JString  id  ) 

Wait for Timer.

Definition at line 193 of file TimerManager.cpp.

long cmlabs::TimerManager::msLeft ( JString  id  ) 

How long left of Timer.

Definition at line 204 of file TimerManager.cpp.

int cmlabs::TimerManager::getActiveTimerCount (  ) 

Active Timer count.

Definition at line 222 of file TimerManager.cpp.

Collection cmlabs::TimerManager::getActiveTimerIDs (  ) 

Get the active Timer IDs.

Definition at line 226 of file TimerManager.cpp.

bool cmlabs::TimerManager::receiveTimerObject ( Object obj  )  [virtual]

For testing only.

Implements cmlabs::TimerObjectReceiver.

Definition at line 401 of file TimerManager.cpp.

Timer * cmlabs::TimerManager::getTimer ( JString  id  )  [protected]

Definition at line 211 of file TimerManager.cpp.


Member Data Documentation

Definition at line 85 of file TimerManager.h.


The documentation for this class was generated from the following files:

Generated on Tue Jul 7 16:24:23 2009 for CoreLibrary by  doxygen 1.5.6