backend-device.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2023 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include <src/device.h>
7 #include <memory>
8 
9 
10 namespace librealsense {
11 
12 
13 namespace platform {
14 class backend;
15 }
16 
17 
18 // Common base class for all backend devices (i.e., those that require a platform backend)
19 //
20 class backend_device : public virtual device
21 {
22  typedef device super;
23 
24 protected:
25  backend_device( std::shared_ptr< const device_info > const & dev_info, bool device_changed_notifications = true )
26  : super( dev_info, device_changed_notifications )
27  {
28  }
29 
30 public:
31  uint16_t get_pid() const { return _pid; }
32  std::shared_ptr< platform::backend > get_backend();
33 
34  virtual bool is_gyro_high_sensitivity() const { return false; }
35 
36 protected:
38 };
39 
40 
41 } // namespace librealsense
librealsense
Definition: algo.h:18
librealsense::backend_device::backend_device
backend_device(std::shared_ptr< const device_info > const &dev_info, bool device_changed_notifications=true)
Definition: backend-device.h:25
uint16_t
unsigned short uint16_t
Definition: stdint.h:79
librealsense::backend_device::get_pid
uint16_t get_pid() const
Definition: backend-device.h:31
device.h
librealsense::backend_device::super
device super
Definition: backend-device.h:22
librealsense::backend_device::is_gyro_high_sensitivity
virtual bool is_gyro_high_sensitivity() const
Definition: backend-device.h:34
librealsense::backend_device::_pid
uint16_t _pid
Definition: backend-device.h:37
librealsense::backend_device::get_backend
std::shared_ptr< platform::backend > get_backend()
Definition: backend-device-factory.cpp:118
librealsense::backend_device
Definition: backend-device.h:20
librealsense::device
Definition: device.h:35


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:01