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

#include "OVR_Linux_HIDDevice.h"

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

Public Member Functions

 HIDDeviceManager (Linux::DeviceManager *Manager)
 
virtual ~HIDDeviceManager ()
 
virtual bool Initialize ()
 
virtual void Shutdown ()
 
virtual bool Enumerate (HIDEnumerateVisitor *enumVisitor)
 
virtual OVR::HIDDeviceOpen (const String &path)
 
void OnEvent (int i, int fd)
 
- Public Member Functions inherited from OVR::RefCountBase< HIDDeviceManager >
OVR_FORCE_INLINE RefCountBase ()
 
- Public Member Functions inherited from OVR::RefCountBaseStatImpl< RefCountImpl >
 RefCountBaseStatImpl ()
 
- Public Member Functions inherited from OVR::RefCountImpl
void AddRef ()
 
void Release ()
 
- Public Member Functions inherited from OVR::RefCountImplCore
OVR_FORCE_INLINE RefCountImplCore ()
 
virtual ~RefCountImplCore ()
 
int GetRefCount () const
 
void operator= (const RefCountImplCore &)
 
- Public Member Functions inherited from OVR::Linux::DeviceManagerThread::Notifier
virtual double OnTicks (double tickSeconds)
 

Static Public Member Functions

static HIDDeviceManagerCreateInternal (DeviceManager *manager)
 
- Static Public Member Functions inherited from OVR::HIDDeviceManager
static HIDDeviceManagerCreate (Ptr< OVR::DeviceManager > &deviceManager)
 
- Static Public Member Functions inherited from OVR::RefCountImplCore
static void checkInvalidDelete (RefCountImplCore *)
 

Private Member Functions

bool initializeManager ()
 
bool initVendorProductVersion (udev_device *device, HIDDeviceDesc *pDevDesc)
 
bool getPath (udev_device *device, String *pPath)
 
bool getIntProperty (udev_device *device, const char *key, int32_t *pResult)
 
bool getStringProperty (udev_device *device, const char *propertyName, OVR::String *pResult)
 
bool getFullDesc (udev_device *device, HIDDeviceDesc *desc)
 
bool GetDescriptorFromPath (const char *dev_path, HIDDeviceDesc *desc)
 
bool AddNotificationDevice (HIDDevice *device)
 
bool RemoveNotificationDevice (HIDDevice *device)
 

Private Attributes

DeviceManagerDevManager
 
udev * UdevInstance
 
udev_monitor * HIDMonitor
 
int HIDMonHandle
 
Array< HIDDevice * > NotificationDevices
 

Friends

class HIDDevice
 

Additional Inherited Members

- Protected Member Functions inherited from OVR::HIDDeviceManager
 HIDDeviceManager ()
 
- Protected Attributes inherited from OVR::RefCountImplCore
volatile int RefCount
 

Detailed Description

Definition at line 92 of file OVR_Linux_HIDDevice.h.

Constructor & Destructor Documentation

OVR::Linux::HIDDeviceManager::HIDDeviceManager ( Linux::DeviceManager Manager)

Definition at line 41 of file OVR_Linux_HIDDevice.cpp.

OVR::Linux::HIDDeviceManager::~HIDDeviceManager ( )
virtual

Definition at line 49 of file OVR_Linux_HIDDevice.cpp.

Member Function Documentation

bool OVR::Linux::HIDDeviceManager::AddNotificationDevice ( HIDDevice device)
private

Definition at line 135 of file OVR_Linux_HIDDevice.cpp.

HIDDeviceManager * OVR::Linux::HIDDeviceManager::CreateInternal ( Linux::DeviceManager devManager)
static

Definition at line 757 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDeviceManager::Enumerate ( HIDEnumerateVisitor enumVisitor)
virtual

Implements OVR::HIDDeviceManager.

Definition at line 214 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDeviceManager::GetDescriptorFromPath ( const char *  dev_path,
HIDDeviceDesc desc 
)
private

Definition at line 320 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDeviceManager::getFullDesc ( udev_device *  device,
HIDDeviceDesc desc 
)
private

Definition at line 300 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDeviceManager::getIntProperty ( udev_device *  device,
const char *  key,
int32_t *  pResult 
)
private

Definition at line 156 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDeviceManager::getPath ( udev_device *  device,
String pPath 
)
private
bool OVR::Linux::HIDDeviceManager::getStringProperty ( udev_device *  device,
const char *  propertyName,
OVR::String pResult 
)
private

Definition at line 196 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDeviceManager::Initialize ( )
virtual

Definition at line 103 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDeviceManager::initializeManager ( )
private

Definition at line 54 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDeviceManager::initVendorProductVersion ( udev_device *  device,
HIDDeviceDesc pDevDesc 
)
private

Definition at line 174 of file OVR_Linux_HIDDevice.cpp.

void OVR::Linux::HIDDeviceManager::OnEvent ( int  i,
int  fd 
)
virtual
OVR::HIDDevice * OVR::Linux::HIDDeviceManager::Open ( const String path)
virtual

Implements OVR::HIDDeviceManager.

Definition at line 286 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDeviceManager::RemoveNotificationDevice ( HIDDevice device)
private

Definition at line 142 of file OVR_Linux_HIDDevice.cpp.

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

Definition at line 115 of file OVR_Linux_HIDDevice.cpp.

Friends And Related Function Documentation

friend class HIDDevice
friend

Definition at line 94 of file OVR_Linux_HIDDevice.h.

Field Documentation

DeviceManager* OVR::Linux::HIDDeviceManager::DevManager
private

Definition at line 124 of file OVR_Linux_HIDDevice.h.

int OVR::Linux::HIDDeviceManager::HIDMonHandle
private

Definition at line 128 of file OVR_Linux_HIDDevice.h.

udev_monitor* OVR::Linux::HIDDeviceManager::HIDMonitor
private

Definition at line 127 of file OVR_Linux_HIDDevice.h.

Array<HIDDevice*> OVR::Linux::HIDDeviceManager::NotificationDevices
private

Definition at line 130 of file OVR_Linux_HIDDevice.h.

udev* OVR::Linux::HIDDeviceManager::UdevInstance
private

Definition at line 126 of file OVR_Linux_HIDDevice.h.


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