Container for diagram generation progress indicators. More...
Container for diagram generation progress indicators.
Definition at line 107 of file progress_indicator.h.
#include <progress_indicator.h>
Public Member Functions | |
progress_indicator () | |
progress_indicator (std::ostream &ostream) | |
~progress_indicator () override=default | |
void | add_progress_bar (const std::string &name, size_t max, indicators::Color color) override |
void | increment (const std::string &name) override |
void | stop () override |
void | complete (const std::string &name) override |
void | fail (const std::string &name) override |
Public Member Functions inherited from clanguml::common::generators::progress_indicator_base | |
virtual | ~progress_indicator_base ()=default |
virtual void | add_progress_bar (const std::string &name, size_t max, indicators::Color color)=0 |
virtual void | increment (const std::string &name)=0 |
virtual void | stop ()=0 |
virtual void | complete (const std::string &name)=0 |
virtual void | fail (const std::string &name)=0 |
Private Attributes | |
indicators::DynamicProgress< indicators::ProgressBar > | progress_bars_ |
std::vector< std::shared_ptr< indicators::ProgressBar > > | bars_ |
std::ostream & | ostream_ |
Additional Inherited Members | |
Protected Attributes inherited from clanguml::common::generators::progress_indicator_base | |
std::map< std::string, progress_state > | progress_bar_index_ |
std::mutex | progress_bars_mutex_ |
clanguml::common::generators::progress_indicator::progress_indicator | ( | ) |
Definition at line 26 of file progress_indicator.cc.
clanguml::common::generators::progress_indicator::progress_indicator | ( | std::ostream & | ostream | ) |
Definition at line 31 of file progress_indicator.cc.
|
overridedefault |
|
overridevirtual |
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 |
Implements clanguml::common::generators::progress_indicator_base.
Definition at line 56 of file progress_indicator.cc.
|
overridevirtual |
Set specified progress bar as complete.
name | Name of the progress bar |
Implements clanguml::common::generators::progress_indicator_base.
Definition at line 175 of file progress_indicator.cc.
|
overridevirtual |
Set progress bar as failed.
name | Name of the progress bar |
Implements clanguml::common::generators::progress_indicator_base.
Definition at line 229 of file progress_indicator.cc.
|
overridevirtual |
Increment specified progress bar.
name | Name of the progress bar |
Implements clanguml::common::generators::progress_indicator_base.
Definition at line 115 of file progress_indicator.cc.
|
overridevirtual |
Stop all the progress bars.
Implements clanguml::common::generators::progress_indicator_base.
Definition at line 138 of file progress_indicator.cc.
|
private |
Definition at line 128 of file progress_indicator.h.
|
private |
Definition at line 129 of file progress_indicator.h.
|
private |
Definition at line 127 of file progress_indicator.h.