#include <ProgressOutput.h>
Public Member Functions | |
| ProgressOutput (void) | |
| ProgressOutput (const std::string &m) | |
| void | setMessage (const std::string &m) |
| void | setMessage (const char *msgfmt,...) |
| void | update (float rate) |
| void | done (void) const |
| void | done (float rate, float avgweight=NoAvgWeight) const |
Static Public Attributes | |
| const float | NoAvgWeight = -1.0 |
Protected Member Functions | |
| std::string | vcompose (const char *msgfmt, va_list ap) const |
Private Attributes | |
| std::string | Message |
| time_t | LastUpdate |
|
|
create an empty ProgressOutput object |
|
|
create a ProgressOutput object
|
|
||||||||||||
|
update the output appending rate, [average edge weight], "done" and a newline
|
|
|
update the output appending "done" and a newline (no rate nor average weight) |
|
||||||||||||
|
|
|
|
|
|
|
update the output (taking update frequency into account) with rate as percentage |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
1.3.7