Public Member Functions | Protected Member Functions

zeus::TTimerEventHandleCreator Class Reference

#include <TimerEventHandleCreator.h>

Inheritance diagram for zeus::TTimerEventHandleCreator:
zeus::TZObject zeus::IZUnknown

List of all members.

Public Member Functions

 TTimerEventHandleCreator ()
Int createHandle ()
void removeHandle (Int iHandle)
virtual Retval MQUALIFIER askForInterface (const InterfaceID &rInterfaceID, IZUnknown *&rpIface)
virtual void MQUALIFIER addRef () const
virtual void MQUALIFIER release () const

Protected Member Functions

virtual ~TTimerEventHandleCreator ()

Detailed Description

Manages the creation of unique timer handles. This is done by indexing the handling number generation and checking if number already in use.


Constructor & Destructor Documentation

TTimerEventHandleCreator::TTimerEventHandleCreator (  )

Constructor.

TTimerEventHandleCreator::~TTimerEventHandleCreator (  ) [protected, virtual]

Destructor.


Member Function Documentation

virtual void MQUALIFIER zeus::TTimerEventHandleCreator::addRef (  ) const [virtual]
See also:
IZUnknown::addRef

Reimplemented from zeus::TZObject.

virtual Retval MQUALIFIER zeus::TTimerEventHandleCreator::askForInterface ( const InterfaceID rInterfaceID,
IZUnknown *&  rpIface 
) [virtual]
See also:
IZUnknown::askForInterface

Reimplemented from zeus::TZObject.

Int TTimerEventHandleCreator::createHandle (  )

Create a unique handle by increasing current index and checking for this number in internal list of currently used handle number. If number already exist the increase index again and check its occurence in list. This procedure will be repeated till a free handle is found.

Returns:
Handle: Newly created timer handle.
virtual void MQUALIFIER zeus::TTimerEventHandleCreator::release (  ) const [virtual]
See also:
IZUnknown::release

Reimplemented from zeus::TZObject.

void TTimerEventHandleCreator::removeHandle ( Int  iHandle )

Marks a currently used handle number as unused. This will be done by deleting handle number form internal in use list.

Parameters:
IN]iHandle : Handle number to mark as unused

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:41