Logo
~Sockets~
~Examples~
~Contact~


IEventHandler Class Reference
[EventTimer event handling]

Timer event handler pure virtual base class. More...

#include <IEventHandler.h>

Inheritance diagram for IEventHandler:

List of all members.


Public Member Functions

virtual ~IEventHandler ()
virtual bool GetTimeUntilNextEvent (struct timeval *)=0
 Return time left until next event.
virtual void CheckEvents ()=0
 Will fire events whose time has come.
virtual long AddEvent (IEventOwner *, long sec, long usec)=0
 Schedule event for an owner.
virtual void ClearEvents (IEventOwner *)=0
 Clear all events for a specific owner.
virtual void RemoveEvent (IEventOwner *, long)=0
 Remove one specific event for an event owner.

Detailed Description

Timer event handler pure virtual base class.

Definition at line 46 of file IEventHandler.h.


Constructor & Destructor Documentation

virtual IEventHandler::~IEventHandler (  )  [inline, virtual]

Definition at line 49 of file IEventHandler.h.

00049 {}


Member Function Documentation

virtual bool IEventHandler::GetTimeUntilNextEvent ( struct timeval *   )  [pure virtual]

Return time left until next event.

Parameters:
tv Time struct that will be filled by method
Returns:
true if time is set for next event

Implemented in EventHandler.

virtual void IEventHandler::CheckEvents (  )  [pure virtual]

Will fire events whose time has come.

Implemented in EventHandler.

virtual long IEventHandler::AddEvent ( IEventOwner ,
long  sec,
long  usec 
) [pure virtual]

Schedule event for an owner.

Parameters:
from Event owner
sec Seconds until event
usec Microseconds until event

Implemented in EventHandler.

Referenced by IEventOwner::AddEvent().

virtual void IEventHandler::ClearEvents ( IEventOwner  )  [pure virtual]

Clear all events for a specific owner.

Implemented in EventHandler.

Referenced by IEventOwner::ClearEvents(), and IEventOwner::~IEventOwner().

virtual void IEventHandler::RemoveEvent ( IEventOwner ,
long   
) [pure virtual]

Remove one specific event for an event owner.

Implemented in EventHandler.

Referenced by IEventOwner::RemoveEvent().


The documentation for this class was generated from the following file:
Page, code, and content Copyright (C) 2007 by Anders Hedström
Generated for C++ Sockets by  doxygen 1.4.4