TimerSingleton Class Reference

Windows-only: Used to work out which Timer::timerCallback to call for a given timerId. More...

#include <VSTGLTimer.h>

List of all members.

Public Member Functions

void registerTimer (Timer *timer, int timerId)
 Timer calls this to register a timerId and Timer instance with us.
void unRegisterTimer (int timerId)
 Removes the timerId for a specific instance of Timer.
TimergetTimer (int timerId) const
 Called from Timer::timerProc() to determine which Timer::timerCallback() to call.
 ~TimerSingleton ()
 Stupid MSVC6 not letting me use a private destructor!!!!

Static Public Member Functions

static TimerSingletongetInstance ()
 Returns the single instance of TimerSingleton.

Private Member Functions

 TimerSingleton ()
 Constructor.

Private Attributes

std::map< int, Timer * > timers
 map holding all the currently running timers.


Detailed Description

Windows-only: Used to work out which Timer::timerCallback to call for a given timerId.


Member Function Documentation

Timer * TimerSingleton::getTimer int  timerId  )  const
 

Called from Timer::timerProc() to determine which Timer::timerCallback() to call.

Return values:
Pointer to the correct Timer if successful, 0 otherwise.

void TimerSingleton::registerTimer Timer timer,
int  timerId
 

Timer calls this to register a timerId and Timer instance with us.

Parameters:
timer Pointer to the timer instance in question.
timerId The id for the timer instance in question.


The documentation for this class was generated from the following files:
Generated on Mon Aug 7 19:03:50 2006 for VSTGL by  doxygen 1.4.5