32 if( ! context_settings.nested(
"inherit" ).default_value(
true ) )
33 return context_settings;
42 config.override( context_settings,
"context settings" );
51 static bool version_logged =
false;
52 if( ! version_logged )
54 version_logged =
true;
62 _factories.push_back( std::make_shared< backend_device_factory >(
64 [
this]( std::vector< std::shared_ptr< device_info > >
const & removed,
65 std::vector< std::shared_ptr< device_info > >
const & added )
69 _factories.push_back( std::make_shared< rsdds_device_factory >(
71 [
this]( std::vector< std::shared_ptr< device_info > >
const & removed,
72 std::vector< std::shared_ptr< device_info > >
const & added )
81 sptr->create_factories( sptr );
88 return make( ( ! json_settings || ! *json_settings ) ? json::object() :
json::parse( json_settings ) );
99 unsigned mask = requested_mask;
111 std::vector< std::shared_ptr< device_info > > list;
114 for(
auto & dev_info :
factory->query_devices( requested_mask ) )
116 LOG_INFO(
"... " << dev_info->get_address() );
117 list.push_back( dev_info );
122 if(
auto dev_info = item.second.lock() )
124 LOG_INFO(
"... " << dev_info->get_address() );
125 list.push_back( dev_info );
128 LOG_INFO(
"Found " << list.size() <<
" RealSense devices (0x" << std::hex << requested_mask <<
" requested & 0x"
129 <<
get_device_mask() <<
" from device-mask in settings)" << std::dec );
135 std::vector< std::shared_ptr< device_info > >
const & rs2_devices_info_removed,
136 std::vector< std::shared_ptr< device_info > >
const & rs2_devices_info_added )
150 auto address =
dev->get_address();
157 std::vector< std::shared_ptr< device_info > > rs2_device_info_added{
dev };
164 auto address =
dev->get_address();
169 auto dev_info =
it->second.lock();
174 std::vector< std::shared_ptr< device_info > > rs2_device_info_removed{ dev_info };