Public Member Functions | Private Attributes | List of all members
librealsense::info_container Class Reference

#include <info.h>

Inheritance diagram for librealsense::info_container:
Inheritance graph

Public Member Functions

void create_snapshot (std::shared_ptr< info_interface > &snapshot) const override
void enable_recording (std::function< void(const info_interface &)> record_action) override
const std::stringget_info (rs2_camera_info info) const override
void register_info (rs2_camera_info info, const std::string &val)
bool supports_info (rs2_camera_info info) const override
void update (std::shared_ptr< extension_snapshot > ext) override
void update_info (rs2_camera_info info, const std::string &val)
- Public Member Functions inherited from librealsense::info_interface
virtual ~info_interface ()=default
- Public Member Functions inherited from librealsense::recordable< info_interface >
virtual ~recordable ()=default
- Public Member Functions inherited from librealsense::extension_snapshot
virtual ~extension_snapshot ()=default

Private Attributes

std::map< rs2_camera_info, std::string_camera_info

Detailed Description

Definition at line 22 of file info.h.

Member Function Documentation

void librealsense::info_container::create_snapshot ( std::shared_ptr< info_interface > &  snapshot) const

Create a snapshot of the deriving extension. A snapshot of T is a reflection of the state and memory of T at the time of the call

Implements librealsense::recordable< info_interface >.

Definition at line 629 of file sensor.cpp.

void librealsense::info_container::enable_recording ( std::function< void(const info_interface &)>  recording_function)

Instruct the derived class to begin notifying on changes Derived class should call the recording_function with a reference of themselves

Implements librealsense::recordable< info_interface >.

Definition at line 633 of file sensor.cpp.

const std::string & librealsense::info_container::get_info ( rs2_camera_info  info) const
void librealsense::info_container::register_info ( rs2_camera_info  info,
const std::string val 

Definition at line 602 of file sensor.cpp.

bool librealsense::info_container::supports_info ( rs2_camera_info  info) const
void librealsense::info_container::update ( std::shared_ptr< extension_snapshot ext)

Implements librealsense::extension_snapshot.

Definition at line 638 of file sensor.cpp.

void librealsense::info_container::update_info ( rs2_camera_info  info,
const std::string val 

Definition at line 614 of file sensor.cpp.

Member Data Documentation

std::map<rs2_camera_info, std::string> librealsense::info_container::_camera_info

Definition at line 34 of file info.h.

The documentation for this class was generated from the following files:

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