4#ifndef LIBREALSENSE_RS2_HPP
5#define LIBREALSENSE_RS2_HPP
82 const char*
raw()
const
118 : on_log_function( std::move(
on_log ) )
158 rs2_log(severity, message, &e);
static void handle(rs2_error *e)
Definition rs_types.hpp:162
std::function< void(rs2_log_severity, rs2::log_message const &) > log_fn
Definition rs.hpp:111
void release() override
Definition rs.hpp:127
void on_log(rs2_log_severity severity, rs2_log_message const &msg) noexcept override
Definition rs.hpp:122
log_callback(log_fn &&on_log)
Definition rs.hpp:117
size_t line_number() const
Definition rs.hpp:66
friend class log_callback
Definition rs.hpp:60
const char * filename() const
Definition rs.hpp:74
const char * raw() const
Definition rs.hpp:82
const char * full() const
Definition rs.hpp:93
Definition rs_processing_gl.hpp:13
void log(rs2_log_severity severity, const char *message)
Definition rs.hpp:155
void enable_rolling_log_file(unsigned max_size)
Definition rs.hpp:47
void reset_logger()
Definition rs.hpp:33
void log_to_console(rs2_log_severity min_severity)
Definition rs.hpp:19
void log_to_file(rs2_log_severity min_severity, const char *file_path=nullptr)
Definition rs.hpp:26
void log_to_callback(rs2_log_severity min_severity, log_callback::log_fn callback)
Definition rs.hpp:145
Exposes librealsense functionality for C compilers.
void rs2_log_to_console(rs2_log_severity min_severity, rs2_error **error)
unsigned rs2_get_log_message_line_number(rs2_log_message const *msg, rs2_error **error)
void rs2_log_to_file(rs2_log_severity min_severity, const char *file_path, rs2_error **error)
const char * rs2_get_log_message_filename(rs2_log_message const *msg, rs2_error **error)
void rs2_enable_rolling_log_file(unsigned max_size, rs2_error **error)
const char * rs2_get_full_log_message(rs2_log_message const *msg, rs2_error **error)
void rs2_log_to_callback_cpp(rs2_log_severity min_severity, rs2_log_callback *callback, rs2_error **error)
void rs2_reset_logger(rs2_error **error)
void rs2_log(rs2_log_severity severity, const char *message, rs2_error **error)
const char * rs2_get_raw_log_message(rs2_log_message const *msg, rs2_error **error)
std::ostream & operator<<(std::ostream &o, rs2_stream stream)
Definition rs.hpp:163
rs2_calibration_type
Definition rs_device.h:403
const char * rs2_calibration_type_to_string(rs2_calibration_type)
rs2_calibration_status
Definition rs_device.h:415
const char * rs2_calibration_status_to_string(rs2_calibration_status)
const char * rs2_timestamp_domain_to_string(rs2_timestamp_domain info)
rs2_timestamp_domain
Specifies the clock in relation to which the frame timestamp was measured.
Definition rs_frame.h:20
const char * rs2_frame_metadata_to_string(rs2_frame_metadata_value metadata)
rs2_frame_metadata_value
Per-Frame-Metadata is the set of read-only properties that might be exposed for each individual frame...
Definition rs_frame.h:30
const char * rs2_l500_visual_preset_to_string(rs2_l500_visual_preset preset)
rs2_sr300_visual_preset
For SR300 devices: provides optimized settings (presets) for specific types of usage.
Definition rs_option.h:196
rs2_l500_visual_preset
For L500 devices: provides optimized settings (presets) for specific types of usage.
Definition rs_option.h:228
const char * rs2_option_to_string(rs2_option option)
const char * rs2_sensor_mode_to_string(rs2_sensor_mode preset)
rs2_sensor_mode
For setting the camera_mode option.
Definition rs_option.h:242
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls,...
Definition rs_option.h:27
const char * rs2_sr300_visual_preset_to_string(rs2_sr300_visual_preset preset)
const char * rs2_playback_status_to_string(rs2_playback_status status)
rs2_playback_status
Definition rs_record_playback.h:20
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition rs_sensor.h:44
const char * rs2_stream_to_string(rs2_stream stream)
const char * rs2_camera_info_to_string(rs2_camera_info info)
rs2_camera_info
Read-only strings that can be queried from the device. Not all information attributes are available o...
Definition rs_sensor.h:22
const char * rs2_format_to_string(rs2_format format)
rs2_format
A stream's format identifies how binary data is encoded within a frame.
Definition rs_sensor.h:62
const char * rs2_exception_type_to_string(rs2_exception_type type)
rs2_log_severity
Severity of the librealsense logger.
Definition rs_types.h:123
const char * rs2_distortion_to_string(rs2_distortion distortion)
struct rs2_log_message rs2_log_message
Definition rs_types.h:231
rs2_notification_category
Category of the librealsense notification.
Definition rs_types.h:19
rs2_distortion
Distortion model: defines how pixel coordinates should be mapped to sensor coordinates.
Definition rs_types.h:48
const char * rs2_log_severity_to_string(rs2_log_severity info)
struct rs2_error rs2_error
Definition rs_types.h:230
rs2_exception_type
Exception types are the different categories of errors that RealSense API might return.
Definition rs_types.h:33
const char * rs2_notification_category_to_string(rs2_notification_category category)
Definition rs_types.hpp:61