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

#include "OVR_Linux_DeviceManager.h"

Inheritance diagram for OVR::Linux::DeviceManager:
Inheritance graph
Collaboration diagram for OVR::Linux::DeviceManager:
Collaboration graph

Public Member Functions

 DeviceManager ()
 
 ~DeviceManager ()
 
virtual bool Initialize (DeviceBase *parent)
 
virtual void Shutdown ()
 
virtual ThreadCommandQueueGetThreadQueue ()
 
virtual ThreadId GetThreadId () const
 
virtual DeviceEnumerator EnumerateDevicesEx (const DeviceEnumerationArgs &args)
 
virtual bool GetDeviceInfo (DeviceInfo *info) const
 
- Public Member Functions inherited from OVR::DeviceManagerImpl
 DeviceManagerImpl ()
 
 ~DeviceManagerImpl ()
 
virtual ProfileManagerGetProfileManager () const
 
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 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)
 

Data Fields

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

Additional Inherited Members

- Public Types inherited from OVR::DeviceManager
enum  { EnumDeviceType = Device_Manager }
 
- Public Types inherited from OVR::DeviceBase
enum  { EnumDeviceType = Device_All }
 
- Static Public Member Functions inherited from OVR::DeviceManagerImpl
static DeviceCreateDescCreateManagerDesc ()
 
static DeviceCommonGetDeviceCommon (DeviceBase *device)
 
- Static Public Member Functions inherited from OVR::DeviceManager
static DeviceManagerCreate ()
 
- Protected Member Functions inherited from OVR::DeviceManager
DeviceEnumerator enumeratorFromHandle (const DeviceHandle &h, const DeviceEnumerationArgs &args)
 
DeviceManagergetThis ()
 
- Protected Attributes inherited from OVR::DeviceManagerImpl
Ptr< HIDDeviceManagerHidDeviceManager
 
Ptr< ProfileManagerpProfileManager
 

Detailed Description

Definition at line 43 of file OVR_Linux_DeviceManager.h.

Constructor & Destructor Documentation

OVR::Linux::DeviceManager::DeviceManager ( )

Definition at line 45 of file OVR_Linux_DeviceManager.cpp.

OVR::Linux::DeviceManager::~DeviceManager ( )

Definition at line 49 of file OVR_Linux_DeviceManager.cpp.

Member Function Documentation

DeviceEnumerator OVR::Linux::DeviceManager::EnumerateDevicesEx ( const DeviceEnumerationArgs args)
virtual

Reimplemented from OVR::DeviceManagerImpl.

Definition at line 119 of file OVR_Linux_DeviceManager.cpp.

bool OVR::Linux::DeviceManager::GetDeviceInfo ( DeviceInfo info) const
virtual

Reimplemented from OVR::DeviceBase.

Definition at line 106 of file OVR_Linux_DeviceManager.cpp.

ThreadId OVR::Linux::DeviceManager::GetThreadId ( ) const
virtual

Implements OVR::DeviceManagerImpl.

Definition at line 101 of file OVR_Linux_DeviceManager.cpp.

ThreadCommandQueue * OVR::Linux::DeviceManager::GetThreadQueue ( )
virtual

Implements OVR::DeviceManagerImpl.

Definition at line 96 of file OVR_Linux_DeviceManager.cpp.

bool OVR::Linux::DeviceManager::Initialize ( DeviceBase parent)
virtual

Reimplemented from OVR::DeviceManagerImpl.

Definition at line 53 of file OVR_Linux_DeviceManager.cpp.

void OVR::Linux::DeviceManager::Shutdown ( )
virtual

Reimplemented from OVR::DeviceManagerImpl.

Definition at line 73 of file OVR_Linux_DeviceManager.cpp.

Field Documentation

Ptr<DeviceManagerThread> OVR::Linux::DeviceManager::pThread

Definition at line 60 of file OVR_Linux_DeviceManager.h.


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