Public Member Functions | Protected Member Functions | Private Attributes | List of all members
oni::driver::DriverBase Class Referenceabstract

#include <OniDriverAPI.h>

Inheritance diagram for oni::driver::DriverBase:
Inheritance graph
[legend]

Public Member Functions

virtual void deviceClose (DeviceBase *pDevice)=0
 
virtual DeviceBasedeviceOpen (const char *uri, const char *mode)=0
 
virtual void disableFrameSync (void *)
 
 DriverBase (OniDriverServices *pDriverServices)
 
virtual voidenableFrameSync (StreamBase **, int)
 
virtual OniStatus initialize (DeviceConnectedCallback connectedCallback, DeviceDisconnectedCallback disconnectedCallback, DeviceStateChangedCallback deviceStateChangedCallback, void *pCookie)
 
virtual void shutdown ()=0
 
virtual OniStatus tryDevice (const char *)
 
virtual ~DriverBase ()
 

Protected Member Functions

void deviceConnected (const OniDeviceInfo *pInfo)
 
void deviceDisconnected (const OniDeviceInfo *pInfo)
 
void deviceStateChanged (const OniDeviceInfo *pInfo, int errorState)
 
DriverServicesgetServices ()
 

Private Attributes

DeviceConnectedCallback m_deviceConnectedEvent
 
DeviceDisconnectedCallback m_deviceDisconnectedEvent
 
DeviceStateChangedCallback m_deviceStateChangedEvent
 
voidm_pCookie
 
DriverServices m_services
 

Detailed Description

Definition at line 163 of file OniDriverAPI.h.

Constructor & Destructor Documentation

oni::driver::DriverBase::DriverBase ( OniDriverServices pDriverServices)
inline

Definition at line 166 of file OniDriverAPI.h.

virtual oni::driver::DriverBase::~DriverBase ( )
inlinevirtual

Definition at line 169 of file OniDriverAPI.h.

Member Function Documentation

virtual void oni::driver::DriverBase::deviceClose ( DeviceBase pDevice)
pure virtual

Implemented in FreenectDriver::Driver.

void oni::driver::DriverBase::deviceConnected ( const OniDeviceInfo pInfo)
inlineprotected

Definition at line 191 of file OniDriverAPI.h.

void oni::driver::DriverBase::deviceDisconnected ( const OniDeviceInfo pInfo)
inlineprotected

Definition at line 192 of file OniDriverAPI.h.

virtual DeviceBase* oni::driver::DriverBase::deviceOpen ( const char *  uri,
const char *  mode 
)
pure virtual

Implemented in FreenectDriver::Driver.

void oni::driver::DriverBase::deviceStateChanged ( const OniDeviceInfo pInfo,
int  errorState 
)
inlineprotected

Definition at line 193 of file OniDriverAPI.h.

virtual void oni::driver::DriverBase::disableFrameSync ( void )
inlinevirtual

Definition at line 188 of file OniDriverAPI.h.

virtual void* oni::driver::DriverBase::enableFrameSync ( StreamBase **  ,
int   
)
inlinevirtual

Definition at line 187 of file OniDriverAPI.h.

DriverServices& oni::driver::DriverBase::getServices ( )
inlineprotected

Definition at line 195 of file OniDriverAPI.h.

virtual OniStatus oni::driver::DriverBase::initialize ( DeviceConnectedCallback  connectedCallback,
DeviceDisconnectedCallback  disconnectedCallback,
DeviceStateChangedCallback  deviceStateChangedCallback,
void pCookie 
)
inlinevirtual

Definition at line 171 of file OniDriverAPI.h.

virtual void oni::driver::DriverBase::shutdown ( )
pure virtual

Implemented in FreenectDriver::Driver.

virtual OniStatus oni::driver::DriverBase::tryDevice ( const char *  )
inlinevirtual

Reimplemented in FreenectDriver::Driver.

Definition at line 185 of file OniDriverAPI.h.

Member Data Documentation

DeviceConnectedCallback oni::driver::DriverBase::m_deviceConnectedEvent
private

Definition at line 198 of file OniDriverAPI.h.

DeviceDisconnectedCallback oni::driver::DriverBase::m_deviceDisconnectedEvent
private

Definition at line 199 of file OniDriverAPI.h.

DeviceStateChangedCallback oni::driver::DriverBase::m_deviceStateChangedEvent
private

Definition at line 200 of file OniDriverAPI.h.

void* oni::driver::DriverBase::m_pCookie
private

Definition at line 201 of file OniDriverAPI.h.

DriverServices oni::driver::DriverBase::m_services
private

Definition at line 203 of file OniDriverAPI.h.


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


libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Thu Jun 6 2019 19:25:39