l500-factory.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2015 Intel Corporation. All Rights Reserved.
3 #pragma once
4 
5 #include "l500-private.h"
6 
7 namespace librealsense
8 {
9  class l500_info : public device_info
10  {
11  public:
12  std::shared_ptr<device_interface> create(std::shared_ptr<context> ctx,
13  bool register_device_notifications) const override;
14 
15  l500_info(std::shared_ptr<context> ctx,
16  std::vector<platform::uvc_device_info> depth,
18  std::vector<platform::hid_device_info> hid)
19  : device_info(ctx),
20  _depth(std::move(depth)),
21  _hwm(std::move(hwm)),
22  _hid(std::move(hid))
23  {}
24 
25  static std::vector<std::shared_ptr<device_info>> pick_l500_devices(
26  std::shared_ptr<context> ctx,
28 
30  {
31  std::vector<platform::usb_device_info> usb_devices;
32  if (_hwm.id != "")
33  usb_devices = { _hwm };
34  return platform::backend_device_group({ _depth }, usb_devices, { _hid });
35  }
36 
37  private:
38  std::vector<platform::uvc_device_info> _depth;
40  std::vector<platform::hid_device_info> _hid;
41  };
42 }
platform::backend_device_group get_device_data() const override
Definition: l500-factory.h:29
GLint GLint GLsizei GLsizei GLsizei depth
std::vector< platform::uvc_device_info > _depth
Definition: l500-factory.h:38
GLboolean GLuint group
Definition: glext.h:5688
platform::usb_device_info _hwm
Definition: l500-factory.h:39
std::shared_ptr< device_interface > create(std::shared_ptr< context > ctx, bool register_device_notifications) const override
l500_info(std::shared_ptr< context > ctx, std::vector< platform::uvc_device_info > depth, platform::usb_device_info hwm, std::vector< platform::hid_device_info > hid)
Definition: l500-factory.h:15
std::vector< platform::hid_device_info > _hid
Definition: l500-factory.h:40
static std::vector< std::shared_ptr< device_info > > pick_l500_devices(std::shared_ptr< context > ctx, platform::backend_device_group &group)
typename::boost::move_detail::remove_reference< T >::type && move(T &&t) BOOST_NOEXCEPT


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