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

#include "OVR_DeviceImpl.h"

Inheritance diagram for OVR::DeviceManagerImpl:
Inheritance graph
Collaboration diagram for OVR::DeviceManagerImpl:
Collaboration graph

Public Member Functions

 DeviceManagerImpl ()
 
 ~DeviceManagerImpl ()
 
virtual bool Initialize (DeviceBase *parent)
 
virtual void Shutdown ()
 
virtual ProfileManagerGetProfileManager () const
 
virtual ThreadCommandQueueGetThreadQueue ()=0
 
virtual ThreadId GetThreadId () const =0
 
virtual DeviceEnumerator EnumerateDevicesEx (const DeviceEnumerationArgs &args)
 
void AddFactory (DeviceFactory *factory)
 
void CallOnDeviceAdded (DeviceCreateDesc *desc)
 
void CallOnDeviceRemoved (DeviceCreateDesc *desc)
 
DeviceBaseCreateDevice_MgrThread (DeviceCreateDesc *createDesc, DeviceBase *parent=0)
 
Void ReleaseDevice_MgrThread (DeviceBase *device)
 
virtual Void EnumerateAllFactoryDevices ()
 
virtual Void EnumerateFactoryDevices (DeviceFactory *factory)
 
virtual HIDDeviceManagerGetHIDDeviceManager () const
 
virtual Ptr< DeviceCreateDescAddDevice_NeedsLock (const DeviceCreateDesc &createDesc)
 
Ptr< DeviceCreateDescFindDevice (const String &path, DeviceType=Device_None)
 
Ptr< DeviceCreateDescFindHIDDevice (const HIDDeviceDesc &, bool created)
 
void DetectHIDDevice (const HIDDeviceDesc &)
 
- Public Member Functions inherited from OVR::DeviceImpl< OVR::DeviceManager >
 DeviceImpl (DeviceCreateDesc *createDesc, DeviceBase *parent)
 
DeviceManagerImplGetManagerImpl () const
 
DeviceImplgetThis ()
 
virtual DeviceCommongetDeviceCommon () const
 
- Public Member Functions inherited from OVR::DeviceManager
 DeviceManager ()
 
virtual DeviceType GetType () const
 
virtual DeviceManagerGetManager () const
 
template<class D >
DeviceEnumerator< D > EnumerateDevices (bool availableOnly=true)
 
- Public Member Functions inherited from OVR::DeviceBase
virtual ~DeviceBase ()
 
virtual void AddRef ()
 
virtual void Release ()
 
virtual DeviceBaseGetParent () const
 
virtual void AddMessageHandler (MessageHandler *handler)
 
virtual bool GetDeviceInfo (DeviceInfo *info) const
 
virtual bool IsConnected ()
 
LockGetHandlerLock () const
 
- Public Member Functions inherited from OVR::DeviceCommon
 DeviceCommon (DeviceCreateDesc *createDesc, DeviceBase *device, DeviceBase *parent)
 
virtual ~DeviceCommon ()
 
void DeviceAddRef ()
 
void DeviceRelease ()
 
LockGetLock () const
 
- Public Member Functions inherited from OVR::ThreadCommandQueue
 ThreadCommandQueue ()
 
virtual ~ThreadCommandQueue ()
 
bool PopCommand (ThreadCommand::PopBuffer *popBuffer)
 
bool PushCommand (const ThreadCommand &command)
 
void PushExitCommand (bool wait)
 
bool IsExiting () const
 
virtual void OnPushNonEmpty_Locked ()
 
virtual void OnPopEmpty_Locked ()
 
template<class C , class R >
bool PushCall (R(C::*fn)(), bool wait=false)
 
template<class C , class R , class A0 >
bool PushCall (R(C::*fn)(A0), typename SelfType< A0 >::Type a0, bool wait=false)
 
template<class C , class R , class A0 , class A1 >
bool PushCall (R(C::*fn)(A0, A1), typename SelfType< A0 >::Type a0, typename SelfType< A1 >::Type a1, bool wait=false)
 
template<class C , class R >
bool PushCall (C *p, R(C::*fn)(), bool wait=false)
 
template<class C , class R , class A0 >
bool PushCall (C *p, R(C::*fn)(A0), typename SelfType< A0 >::Type a0, bool wait=false)
 
template<class C , class R , class A0 , class A1 >
bool PushCall (C *p, R(C::*fn)(A0, A1), typename SelfType< A0 >::Type a0, typename SelfType< A1 >::Type a1, bool wait=false)
 
template<class C , class R >
bool PushCallAndWaitResult (R(C::*fn)(), R *ret)
 
template<class C , class R , class A0 >
bool PushCallAndWaitResult (R(C::*fn)(A0), R *ret, typename SelfType< A0 >::Type a0)
 
template<class C , class R , class A0 , class A1 >
bool PushCallAndWaitResult (R(C::*fn)(A0, A1), R *ret, typename SelfType< A0 >::Type a0, typename SelfType< A1 >::Type a1)
 
template<class C , class R >
bool PushCallAndWaitResult (C *p, R(C::*fn)(), R *ret)
 
template<class C , class R , class A0 >
bool PushCallAndWaitResult (C *p, R(C::*fn)(A0), R *ret, typename SelfType< A0 >::Type a0)
 
template<class C , class R , class A0 , class A1 >
bool PushCallAndWaitResult (C *p, R(C::*fn)(A0, A1), R *ret, typename SelfType< A0 >::Type a0, typename SelfType< A1 >::Type a1)
 

Static Public Member Functions

static DeviceCreateDescCreateManagerDesc ()
 
static DeviceCommonGetDeviceCommon (DeviceBase *device)
 
- Static Public Member Functions inherited from OVR::DeviceManager
static DeviceManagerCreate ()
 

Data Fields

List< DeviceCreateDescDevices
 
List< DeviceFactoryFactories
 
- Data Fields inherited from OVR::DeviceCommon
AtomicInt< UInt32RefCount
 
Ptr< DeviceCreateDescpCreateDesc
 
Ptr< DeviceBasepParent
 
volatile bool ConnectedFlag
 
MessageHandlerRef HandlerRef
 

Protected Attributes

Ptr< HIDDeviceManagerHidDeviceManager
 
Ptr< ProfileManagerpProfileManager
 

Additional Inherited Members

- Public Types inherited from OVR::DeviceManager
enum  { EnumDeviceType = Device_Manager }
 
- Public Types inherited from OVR::DeviceBase
enum  { EnumDeviceType = Device_All }
 
- Protected Member Functions inherited from OVR::DeviceManager
DeviceEnumerator enumeratorFromHandle (const DeviceHandle &h, const DeviceEnumerationArgs &args)
 
DeviceManagergetThis ()
 

Detailed Description

Definition at line 334 of file OVR_DeviceImpl.h.

Constructor & Destructor Documentation

OVR::DeviceManagerImpl::DeviceManagerImpl ( )

Definition at line 288 of file OVR_DeviceImpl.cpp.

OVR::DeviceManagerImpl::~DeviceManagerImpl ( )

Definition at line 298 of file OVR_DeviceImpl.cpp.

Member Function Documentation

Ptr< DeviceCreateDesc > OVR::DeviceManagerImpl::AddDevice_NeedsLock ( const DeviceCreateDesc createDesc)
virtual

Implements OVR::DeviceManager.

Definition at line 498 of file OVR_DeviceImpl.cpp.

void OVR::DeviceManagerImpl::AddFactory ( DeviceFactory factory)
inline

Definition at line 364 of file OVR_DeviceImpl.h.

void OVR::DeviceManagerImpl::CallOnDeviceAdded ( DeviceCreateDesc desc)
inline

Definition at line 372 of file OVR_DeviceImpl.h.

void OVR::DeviceManagerImpl::CallOnDeviceRemoved ( DeviceCreateDesc desc)
inline

Definition at line 376 of file OVR_DeviceImpl.h.

DeviceBase * OVR::DeviceManagerImpl::CreateDevice_MgrThread ( DeviceCreateDesc createDesc,
DeviceBase parent = 0 
)

Definition at line 361 of file OVR_DeviceImpl.cpp.

DeviceCreateDesc * OVR::DeviceManagerImpl::CreateManagerDesc ( )
static

Definition at line 312 of file OVR_DeviceImpl.cpp.

void OVR::DeviceManagerImpl::DetectHIDDevice ( const HIDDeviceDesc hidDevDesc)

Definition at line 582 of file OVR_DeviceImpl.cpp.

Void OVR::DeviceManagerImpl::EnumerateAllFactoryDevices ( )
virtual

Definition at line 441 of file OVR_DeviceImpl.cpp.

DeviceEnumerator OVR::DeviceManagerImpl::EnumerateDevicesEx ( const DeviceEnumerationArgs args)
virtual

Implements OVR::DeviceManager.

Reimplemented in OVR::Linux::DeviceManager.

Definition at line 621 of file OVR_DeviceImpl.cpp.

Void OVR::DeviceManagerImpl::EnumerateFactoryDevices ( DeviceFactory factory)
virtual

Definition at line 596 of file OVR_DeviceImpl.cpp.

Ptr< DeviceCreateDesc > OVR::DeviceManagerImpl::FindDevice ( const String path,
DeviceType  deviceType = Device_None 
)

Definition at line 543 of file OVR_DeviceImpl.cpp.

Ptr< DeviceCreateDesc > OVR::DeviceManagerImpl::FindHIDDevice ( const HIDDeviceDesc hidDevDesc,
bool  created 
)

Definition at line 560 of file OVR_DeviceImpl.cpp.

static DeviceCommon* OVR::DeviceManagerImpl::GetDeviceCommon ( DeviceBase device)
inlinestatic

Definition at line 382 of file OVR_DeviceImpl.h.

virtual HIDDeviceManager* OVR::DeviceManagerImpl::GetHIDDeviceManager ( ) const
inlinevirtual

Definition at line 398 of file OVR_DeviceImpl.h.

virtual ProfileManager* OVR::DeviceManagerImpl::GetProfileManager ( ) const
inlinevirtual

Implements OVR::DeviceManager.

Definition at line 351 of file OVR_DeviceImpl.h.

virtual ThreadId OVR::DeviceManagerImpl::GetThreadId ( ) const
pure virtual

Implemented in OVR::Linux::DeviceManager.

virtual ThreadCommandQueue* OVR::DeviceManagerImpl::GetThreadQueue ( )
pure virtual

Implemented in OVR::Linux::DeviceManager.

bool OVR::DeviceManagerImpl::Initialize ( DeviceBase parent)
virtual

Implements OVR::DeviceCommon.

Reimplemented in OVR::Linux::DeviceManager.

Definition at line 322 of file OVR_DeviceImpl.cpp.

Void OVR::DeviceManagerImpl::ReleaseDevice_MgrThread ( DeviceBase device)

Definition at line 399 of file OVR_DeviceImpl.cpp.

void OVR::DeviceManagerImpl::Shutdown ( )
virtual

Implements OVR::DeviceCommon.

Reimplemented in OVR::Linux::DeviceManager.

Definition at line 333 of file OVR_DeviceImpl.cpp.

Field Documentation

List<DeviceCreateDesc> OVR::DeviceManagerImpl::Devices

Definition at line 415 of file OVR_DeviceImpl.h.

List<DeviceFactory> OVR::DeviceManagerImpl::Factories

Definition at line 418 of file OVR_DeviceImpl.h.

Ptr<HIDDeviceManager> OVR::DeviceManagerImpl::HidDeviceManager
protected

Definition at line 421 of file OVR_DeviceImpl.h.

Ptr<ProfileManager> OVR::DeviceManagerImpl::pProfileManager
protected

Definition at line 422 of file OVR_DeviceImpl.h.


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