Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::MessageHandlerRef Class Reference

#include "OVR_DeviceImpl.h"

Collaboration diagram for OVR::MessageHandlerRef:
Collaboration graph

Public Member Functions

 MessageHandlerRef (DeviceBase *device)
 
 ~MessageHandlerRef ()
 
bool HasHandlers () const
 
void AddHandler (MessageHandler *handler)
 
bool RemoveHandler (MessageHandler *handler)
 
void AddHandler_NTS (MessageHandler *handler)
 
void Call (const Message &msg)
 
LockGetLock () const
 
DeviceBaseGetDevice () const
 

Private Types

enum  { MaxHandlersCount = 4 }
 

Private Member Functions

bool removeHandler (int idx)
 

Private Attributes

LockpLock
 
DeviceBasepDevice
 
int HandlersCount
 
MessageHandlerpHandlers [MaxHandlersCount]
 

Detailed Description

Definition at line 54 of file OVR_DeviceImpl.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
MaxHandlersCount 

Definition at line 56 of file OVR_DeviceImpl.h.

Constructor & Destructor Documentation

OVR::MessageHandlerRef::MessageHandlerRef ( DeviceBase device)

Definition at line 82 of file OVR_DeviceImpl.cpp.

OVR::MessageHandlerRef::~MessageHandlerRef ( )

Definition at line 87 of file OVR_DeviceImpl.cpp.

Member Function Documentation

void OVR::MessageHandlerRef::AddHandler ( MessageHandler handler)

Definition at line 107 of file OVR_DeviceImpl.cpp.

void OVR::MessageHandlerRef::AddHandler_NTS ( MessageHandler handler)

Definition at line 115 of file OVR_DeviceImpl.cpp.

void OVR::MessageHandlerRef::Call ( const Message msg)

Definition at line 99 of file OVR_DeviceImpl.cpp.

DeviceBase* OVR::MessageHandlerRef::GetDevice ( ) const
inline

Definition at line 74 of file OVR_DeviceImpl.h.

Lock* OVR::MessageHandlerRef::GetLock ( ) const
inline

Definition at line 73 of file OVR_DeviceImpl.h.

bool OVR::MessageHandlerRef::HasHandlers ( ) const
inline

Definition at line 64 of file OVR_DeviceImpl.h.

bool OVR::MessageHandlerRef::RemoveHandler ( MessageHandler handler)

Definition at line 135 of file OVR_DeviceImpl.cpp.

bool OVR::MessageHandlerRef::removeHandler ( int  idx)
private

Definition at line 147 of file OVR_DeviceImpl.cpp.

Field Documentation

int OVR::MessageHandlerRef::HandlersCount
private

Definition at line 80 of file OVR_DeviceImpl.h.

DeviceBase* OVR::MessageHandlerRef::pDevice
private

Definition at line 78 of file OVR_DeviceImpl.h.

MessageHandler* OVR::MessageHandlerRef::pHandlers[MaxHandlersCount]
private

Definition at line 81 of file OVR_DeviceImpl.h.

Lock* OVR::MessageHandlerRef::pLock
private

Definition at line 77 of file OVR_DeviceImpl.h.


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