13 #include "common/fw/target.h" 20 LOG_DEBUG(
"tm2_info created for " <<
this);
25 LOG_DEBUG(
"tm2_info destroyed for " <<
this);
29 bool register_device_notifications)
const 32 return std::make_shared<tm2_device>(
ctx,
get_device_data(), register_device_notifications);
37 LOG_DEBUG(
"tm2_info::get_device_data " <<
this);
43 std::shared_ptr<context>
ctx,
44 std::vector<platform::usb_device_info>& usb)
46 std::vector<std::shared_ptr<device_info>> results;
51 if (correct_pid.size())
53 LOG_INFO(
"Picked " << correct_pid.size() <<
"/" << usb.size() <<
" devices");
55 for(
auto &
dev : correct_pid)
56 results.push_back(std::make_shared<tm2_info>(ctx,
dev));
std::vector< platform::uvc_device_info > filter_by_product(const std::vector< platform::uvc_device_info > &devices, const std::set< uint16_t > &pid_list)
platform::usb_device_info _hwm
platform::backend_device_group get_device_data() const override
tm2_info(std::shared_ptr< context > ctx, platform::usb_device_info hwm)
LOG_INFO("Log message using LOG_INFO()")
static std::vector< std::shared_ptr< device_info > > pick_tm2_devices(std::shared_ptr< context > ctx, std::vector< platform::usb_device_info > &usb)
typename::boost::move_detail::remove_reference< T >::type && move(T &&t) BOOST_NOEXCEPT
std::shared_ptr< device_interface > create(std::shared_ptr< context > ctx, bool register_device_notifications) const override