Rs2Driver.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Rs2Device.h"
4 
5 namespace oni { namespace driver {
6 
7 class Rs2Driver : public DriverBase
8 {
9 public:
10 
11  Rs2Driver(OniDriverServices* driverServices);
12  virtual ~Rs2Driver();
13 
14  virtual OniStatus initialize(
15  DeviceConnectedCallback connectedCallback,
16  DeviceDisconnectedCallback disconnectedCallback,
17  DeviceStateChangedCallback deviceStateChangedCallback,
18  void* cookie);
19 
20  virtual void shutdown();
21 
22  static void devicesChangedCallback(rs2_device_list* removed, rs2_device_list* added, void* param);
23  virtual void devicesChanged(rs2_device_list* removed, rs2_device_list* added);
24 
25  virtual DeviceBase* deviceOpen(const char* uri, const char* mode);
26  virtual void deviceClose(DeviceBase* deviceBase);
27  virtual OniStatus tryDevice(const char* uri);
28 
29  virtual void* enableFrameSync(StreamBase** streams, int streamCount);
30  virtual void disableFrameSync(void* frameSyncGroup);
31 
32  inline rs2_context* getRsContext() { return m_context; }
33 
34 protected:
35 
36  Rs2Driver(const Rs2Driver&);
37  void operator=(const Rs2Driver&);
38 
39  void enumerateDevices();
40 
41 protected:
42 
46  std::map<std::string, class Rs2Device*> m_devices;
47 };
48 
49 }} // namespace
virtual void shutdown()
Definition: Rs2Driver.cpp:74
rs2_context * getRsContext()
Definition: Rs2Driver.h:32
virtual OniStatus initialize(DeviceConnectedCallback connectedCallback, DeviceDisconnectedCallback disconnectedCallback, DeviceStateChangedCallback deviceStateChangedCallback, void *cookie)
Definition: Rs2Driver.cpp:25
virtual void disableFrameSync(void *frameSyncGroup)
Definition: Rs2Driver.cpp:263
rs2_context * m_context
Definition: Rs2Driver.h:45
Definition: Rs2Base.cpp:3
GLenum mode
dictionary streams
Definition: t265_stereo.py:140
virtual DeviceBase * deviceOpen(const char *uri, const char *mode)
Definition: Rs2Driver.cpp:163
static void devicesChangedCallback(rs2_device_list *removed, rs2_device_list *added, void *param)
Definition: Rs2Driver.cpp:110
virtual void deviceClose(DeviceBase *deviceBase)
Definition: Rs2Driver.cpp:235
void operator=(const Rs2Driver &)
GLenum GLfloat param
virtual OniStatus tryDevice(const char *uri)
Definition: Rs2Driver.cpp:249
virtual void * enableFrameSync(StreamBase **streams, int streamCount)
Definition: Rs2Driver.cpp:256
virtual void devicesChanged(rs2_device_list *removed, rs2_device_list *added)
Definition: Rs2Driver.cpp:115
std::mutex Rs2Mutex
Definition: Rs2Base.h:47
std::map< std::string, class Rs2Device * > m_devices
Definition: Rs2Driver.h:46
Rs2Driver(OniDriverServices *driverServices)
Definition: Rs2Driver.cpp:9


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:40