OpenVideo Documentation

   Main Page       Modules       Class Hierarchy       Alphabetical List       Compound List       File List       Compound Members       Related Pages   

openvideo::TimerACE Class Reference
[Core Classes]

Implemtents a Timer, based on the timer implementations the ACE_Reactor provides. More...

#include <TimerACE.h>

Inherits openvideo::TimerBase.

List of all members.

Public Member Functions

 TimerACE ()
virtual ~TimerACE ()
virtual void schedule (void(*timerCB)(void *), void *data, double interval)
virtual void runEventLoop ()

Static Public Attributes

static bool isEventLoopRunning

Private Attributes

TimerHandlerACEhtimer


Detailed Description

Implemtents a Timer, based on the timer implementations the ACE_Reactor provides.

It uses an instance of TimerHandler to schedule the timer.

Definition at line 46 of file TimerACE.h.


Constructor & Destructor Documentation

openvideo::TimerACE::TimerACE  ) 
 

Constructor.

Definition at line 40 of file TimerACE.cxx.

References htimer.

openvideo::TimerACE::~TimerACE  )  [virtual]
 

Destructor.

Definition at line 47 of file TimerACE.cxx.

References htimer.


Member Function Documentation

void openvideo::TimerACE::runEventLoop  )  [virtual]
 

Start event loop.

(calls ACE_Reactor::run_event_loop())

Implements openvideo::TimerBase.

Definition at line 71 of file TimerACE.cxx.

Referenced by openvideo::SchedulerPC::scheduleTimer().

void openvideo::TimerACE::schedule void(*)(void *)  timerCB,
void *  data,
double  interval
[virtual]
 

Schedule the timer.


parameter:
a) timerCB - the callback function b) data - callback data c) interval - the timers interval

Implements openvideo::TimerBase.

Definition at line 55 of file TimerACE.cxx.

References openvideo::TimerHandlerACE::data, htimer, and openvideo::TimerHandlerACE::timerCB.

Referenced by openvideo::SchedulerPC::scheduleTimer().


Member Data Documentation

TimerHandlerACE* openvideo::TimerACE::htimer [private]
 

The timer handler .

Definition at line 82 of file TimerACE.h.

Referenced by schedule(), TimerACE(), and ~TimerACE().

bool openvideo::TimerACE::isEventLoopRunning [static]
 

Boolean to prevent multiple calls to ACE_Reactor::run_event_loop();.

Definition at line 76 of file TimerACE.h.


The documentation for this class was generated from the following files:
 This page was generated at Wed May 31 13:04:19 2006 for OpenVideo by Doxygen.
 If you have any comments, please send a message to schmalstieg@icg.tu-graz.ac.at.
www.studierstube.org