![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <progress_reporter.hpp>
Classes | |
class | Impl |
Public Member Functions | |
ProgressReporter (std::string_view title, U32 nb_work, char progress_char='+', FU16 bar_length=0u) | |
ProgressReporter (const ProgressReporter &reporter)=delete | |
ProgressReporter (ProgressReporter &&reporter) noexcept | |
~ProgressReporter () | |
ProgressReporter & | operator= (const ProgressReporter &reporter)=delete |
ProgressReporter & | operator= (ProgressReporter &&reporter)=delete |
void | Update (U32 nb_work=1u) |
void | Done () |
Private Attributes | |
UniquePtr< Impl > | m_impl |
A class of progress reporters.
|
explicit |
Constructs a progress reporter.
[in] | title | The title. |
[in] | nb_work | The total number of work units. |
[in] | progress_char | The character representing the progress. |
[in] | bar_length | The length of the progress bar. If bar_length is equal to 0 the default length will be chosen. |
|
delete |
Constructs a progress reporter from the given progress reporter.
[in] | reporter | A reference to the progress reporter to copy. |
|
defaultnoexcept |
Constructs a progress reporter by moving the given progress reporter.
[in] | reporter | A reference to the progress reporter to move. |
|
default |
Destructs this progress reporter.
void mage::ProgressReporter::Done | ( | ) |
Finishes this progress reporter.
|
delete |
Copies the given progress reporter to this progress reporter.
[in] | reporter | A reference to the progress reporter to copy. |
|
delete |
Copies the given progress reporter to this progress reporter.
[in] | reporter | A reference to the progress reporter to move. |
void mage::ProgressReporter::Update | ( | U32 | nb_work = 1u | ) |
Updates this progress reporter.
[in] | nb_work | The number of work units that are done. |