Bike-X
0.8
|
#include "OVR_DeviceImpl.h"
Public Member Functions | |
DeviceManagerImpl () | |
~DeviceManagerImpl () | |
virtual bool | Initialize (DeviceBase *parent) |
virtual void | Shutdown () |
virtual ProfileManager * | GetProfileManager () const |
virtual ThreadCommandQueue * | GetThreadQueue ()=0 |
virtual ThreadId | GetThreadId () const =0 |
virtual DeviceEnumerator | EnumerateDevicesEx (const DeviceEnumerationArgs &args) |
void | AddFactory (DeviceFactory *factory) |
void | CallOnDeviceAdded (DeviceCreateDesc *desc) |
void | CallOnDeviceRemoved (DeviceCreateDesc *desc) |
DeviceBase * | CreateDevice_MgrThread (DeviceCreateDesc *createDesc, DeviceBase *parent=0) |
Void | ReleaseDevice_MgrThread (DeviceBase *device) |
virtual Void | EnumerateAllFactoryDevices () |
virtual Void | EnumerateFactoryDevices (DeviceFactory *factory) |
virtual HIDDeviceManager * | GetHIDDeviceManager () const |
virtual Ptr< DeviceCreateDesc > | AddDevice_NeedsLock (const DeviceCreateDesc &createDesc) |
Ptr< DeviceCreateDesc > | FindDevice (const String &path, DeviceType=Device_None) |
Ptr< DeviceCreateDesc > | FindHIDDevice (const HIDDeviceDesc &, bool created) |
void | DetectHIDDevice (const HIDDeviceDesc &) |
Public Member Functions inherited from OVR::DeviceImpl< OVR::DeviceManager > | |
DeviceImpl (DeviceCreateDesc *createDesc, DeviceBase *parent) | |
DeviceManagerImpl * | GetManagerImpl () const |
DeviceImpl * | getThis () |
virtual DeviceCommon * | getDeviceCommon () const |
Public Member Functions inherited from OVR::DeviceManager | |
DeviceManager () | |
virtual DeviceType | GetType () const |
virtual DeviceManager * | GetManager () 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 DeviceBase * | GetParent () const |
virtual void | AddMessageHandler (MessageHandler *handler) |
virtual bool | GetDeviceInfo (DeviceInfo *info) const |
virtual bool | IsConnected () |
Lock * | GetHandlerLock () const |
Public Member Functions inherited from OVR::DeviceCommon | |
DeviceCommon (DeviceCreateDesc *createDesc, DeviceBase *device, DeviceBase *parent) | |
virtual | ~DeviceCommon () |
void | DeviceAddRef () |
void | DeviceRelease () |
Lock * | GetLock () 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 DeviceCreateDesc * | CreateManagerDesc () |
static DeviceCommon * | GetDeviceCommon (DeviceBase *device) |
Static Public Member Functions inherited from OVR::DeviceManager | |
static DeviceManager * | Create () |
Data Fields | |
List< DeviceCreateDesc > | Devices |
List< DeviceFactory > | Factories |
Data Fields inherited from OVR::DeviceCommon | |
AtomicInt< UInt32 > | RefCount |
Ptr< DeviceCreateDesc > | pCreateDesc |
Ptr< DeviceBase > | pParent |
volatile bool | ConnectedFlag |
MessageHandlerRef | HandlerRef |
Protected Attributes | |
Ptr< HIDDeviceManager > | HidDeviceManager |
Ptr< ProfileManager > | pProfileManager |
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) |
DeviceManager * | getThis () |
Definition at line 334 of file OVR_DeviceImpl.h.
OVR::DeviceManagerImpl::DeviceManagerImpl | ( | ) |
Definition at line 288 of file OVR_DeviceImpl.cpp.
OVR::DeviceManagerImpl::~DeviceManagerImpl | ( | ) |
Definition at line 298 of file OVR_DeviceImpl.cpp.
|
virtual |
Implements OVR::DeviceManager.
Definition at line 498 of file OVR_DeviceImpl.cpp.
|
inline |
Definition at line 364 of file OVR_DeviceImpl.h.
|
inline |
Definition at line 372 of file OVR_DeviceImpl.h.
|
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.
|
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.
|
virtual |
Definition at line 441 of file OVR_DeviceImpl.cpp.
|
virtual |
Implements OVR::DeviceManager.
Reimplemented in OVR::Linux::DeviceManager.
Definition at line 621 of file OVR_DeviceImpl.cpp.
|
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.
|
inlinestatic |
Definition at line 382 of file OVR_DeviceImpl.h.
|
inlinevirtual |
Definition at line 398 of file OVR_DeviceImpl.h.
|
inlinevirtual |
Implements OVR::DeviceManager.
Definition at line 351 of file OVR_DeviceImpl.h.
|
pure virtual |
Implemented in OVR::Linux::DeviceManager.
|
pure virtual |
Implemented in OVR::Linux::DeviceManager.
|
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.
|
virtual |
Implements OVR::DeviceCommon.
Reimplemented in OVR::Linux::DeviceManager.
Definition at line 333 of file OVR_DeviceImpl.cpp.
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.
|
protected |
Definition at line 421 of file OVR_DeviceImpl.h.
|
protected |
Definition at line 422 of file OVR_DeviceImpl.h.