#include <notifications.h>
Public Member Functions | |
void | check_error (std::string &error) |
bool | done () const |
void | fail (std::string error) |
bool | failed () const |
const std::string & | get_log () const |
int | get_progress () const |
void | log (std::string line) |
process_manager (std::string name) | |
void | reset () |
void | start (invoker invoke) |
bool | started () const |
virtual | ~process_manager ()=default |
Protected Member Functions | |
virtual void | process_flow (std::function< void()> cleanup, invoker invoke)=0 |
Protected Attributes | |
bool | _done = false |
bool | _failed = false |
std::string | _last_error |
std::string | _log |
std::mutex | _log_lock |
std::string | _process_name |
int | _progress = 0 |
bool | _started = false |
Definition at line 111 of file notifications.h.
|
inline |
Definition at line 114 of file notifications.h.
|
virtualdefault |
|
inline |
Definition at line 127 of file notifications.h.
|
inline |
Definition at line 121 of file notifications.h.
void rs2::process_manager::fail | ( | std::string | error | ) |
Definition at line 752 of file notifications.cpp.
|
inline |
Definition at line 123 of file notifications.h.
|
inline |
Definition at line 124 of file notifications.h.
|
inline |
Definition at line 120 of file notifications.h.
void rs2::process_manager::log | ( | std::string | line | ) |
Definition at line 737 of file notifications.cpp.
|
protectedpure virtual |
Implemented in rs2::export_manager, rs2::on_chip_calib_manager, and rs2::firmware_update_manager.
Definition at line 743 of file notifications.cpp.
Definition at line 779 of file notifications.cpp.
|
inline |
Definition at line 122 of file notifications.h.
|
protected |
Definition at line 139 of file notifications.h.
|
protected |
Definition at line 140 of file notifications.h.
|
protected |
Definition at line 144 of file notifications.h.
|
protected |
Definition at line 137 of file notifications.h.
|
protected |
Definition at line 143 of file notifications.h.
|
protected |
Definition at line 145 of file notifications.h.
|
protected |
Definition at line 141 of file notifications.h.
|
protected |
Definition at line 138 of file notifications.h.