Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
rs2::process_manager Class Referenceabstract

#include <notifications.h>

Inheritance diagram for rs2::process_manager:
Inheritance graph
[legend]

Public Member Functions

void check_error (std::string &error)
 
bool done () const
 
void fail (std::string error)
 
bool failed () const
 
const std::stringget_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
 

Detailed Description

Definition at line 111 of file notifications.h.

Constructor & Destructor Documentation

rs2::process_manager::process_manager ( std::string  name)
inline

Definition at line 114 of file notifications.h.

virtual rs2::process_manager::~process_manager ( )
virtualdefault

Member Function Documentation

void rs2::process_manager::check_error ( std::string error)
inline

Definition at line 127 of file notifications.h.

bool rs2::process_manager::done ( ) const
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.

bool rs2::process_manager::failed ( ) const
inline

Definition at line 123 of file notifications.h.

const std::string& rs2::process_manager::get_log ( ) const
inline

Definition at line 124 of file notifications.h.

int rs2::process_manager::get_progress ( ) const
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.

virtual void rs2::process_manager::process_flow ( std::function< void()>  cleanup,
invoker  invoke 
)
protectedpure virtual
void rs2::process_manager::reset ( void  )

Definition at line 743 of file notifications.cpp.

void rs2::process_manager::start ( invoker  invoke)

Definition at line 779 of file notifications.cpp.

bool rs2::process_manager::started ( ) const
inline

Definition at line 122 of file notifications.h.

Member Data Documentation

bool rs2::process_manager::_done = false
protected

Definition at line 139 of file notifications.h.

bool rs2::process_manager::_failed = false
protected

Definition at line 140 of file notifications.h.

std::string rs2::process_manager::_last_error
protected

Definition at line 144 of file notifications.h.

std::string rs2::process_manager::_log
protected

Definition at line 137 of file notifications.h.

std::mutex rs2::process_manager::_log_lock
protected

Definition at line 143 of file notifications.h.

std::string rs2::process_manager::_process_name
protected

Definition at line 145 of file notifications.h.

int rs2::process_manager::_progress = 0
protected

Definition at line 141 of file notifications.h.

bool rs2::process_manager::_started = false
protected

Definition at line 138 of file notifications.h.


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


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