| 85 | //_________________________________________________________ |
| 86 | |
| 87 | ProgressLogger::ProgressLogger(std::size_t max_val, const std::string& task_name, bool quiet) |
| 88 | : max_val_(max_val), task_name_(task_name), quiet_(quiet) |
| 89 | { |
| 90 | cur_val_ = 0 ; |
| 91 | cur_percent_ = 0 ; |
| 92 | Progress::instance()->push() ; |
| 93 | if(!quiet_) { |
| 94 | Progress::instance()->notify(0) ; |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | void ProgressLogger::reset(std::size_t max_val) { |
| 99 | max_val_ = max_val ; |