Container for diagram generation progress indicators. More...
Container for diagram generation progress indicators.
Definition at line 31 of file progress_indicator.h.
#include <progress_indicator.h>
Classes | |
struct | progress_state |
Public Member Functions | |
progress_indicator () | |
progress_indicator (std::ostream &ostream) | |
void | add_progress_bar (const std::string &name, size_t max, indicators::Color color) |
void | increment (const std::string &name) |
void | stop () |
void | complete (const std::string &name) |
void | fail (const std::string &name) |
Private Attributes | |
indicators::DynamicProgress< indicators::ProgressBar > | progress_bars_ |
std::vector< std::shared_ptr< indicators::ProgressBar > > | bars_ |
std::map< std::string, progress_state > | progress_bar_index_ |
std::mutex | progress_bars_mutex_ |
std::ostream & | ostream_ |
clanguml::common::generators::progress_indicator::progress_indicator | ( | ) |
Definition at line 25 of file progress_indicator.cc.
clanguml::common::generators::progress_indicator::progress_indicator | ( | std::ostream & | ostream | ) |
Definition at line 30 of file progress_indicator.cc.
void clanguml::common::generators::progress_indicator::add_progress_bar | ( | const std::string & | name, |
size_t | max, | ||
indicators::Color | color | ||
) |
Add a new progress bar to the indicator set
name | Name (prefix) of the progress bar |
max | Total number of steps in the progress bar |
color | Color of the progress bar |
Definition at line 36 of file progress_indicator.cc.
void clanguml::common::generators::progress_indicator::complete | ( | const std::string & | name | ) |
Set specified progress bar as complete.
name | Name of the progress bar |
Definition at line 103 of file progress_indicator.cc.
void clanguml::common::generators::progress_indicator::fail | ( | const std::string & | name | ) |
Set progress bar as failed.
name | Name of the progress bar |
Definition at line 134 of file progress_indicator.cc.
void clanguml::common::generators::progress_indicator::increment | ( | const std::string & | name | ) |
Increment specified progress bar.
name | Name of the progress bar |
Definition at line 69 of file progress_indicator.cc.
void clanguml::common::generators::progress_indicator::stop | ( | ) |
Stop all the progress bars.
Definition at line 92 of file progress_indicator.cc.
|
private |
Definition at line 88 of file progress_indicator.h.
|
private |
Definition at line 91 of file progress_indicator.h.
|
private |
Definition at line 89 of file progress_indicator.h.
|
private |
Definition at line 87 of file progress_indicator.h.
|
private |
Definition at line 90 of file progress_indicator.h.