#include <rs.hpp>
Public Member Functions | |
log_callback (std::function< void(log_severity, const char *)> on_event) | |
void | on_event (rs_log_severity severity, const char *message) override |
void | release () override |
Private Attributes | |
std::function< void(log_severity, const char *) | on_event_function ) |
rs::log_callback::log_callback | ( | std::function< void(log_severity, const char *)> | on_event | ) | [inline, explicit] |
void rs::log_callback::on_event | ( | rs_log_severity | severity, |
const char * | message | ||
) | [inline, override, virtual] |
Implements rs_log_callback.
void rs::log_callback::release | ( | ) | [inline, override, virtual] |
Implements rs_log_callback.
std::function<void(log_severity, const char *) rs::log_callback::on_event_function) [private] |