| 13 | } |
| 14 | |
| 15 | void CmdLineProgressMonitor::setProgress(const unsigned int& progress) { |
| 16 | ProgressMonitor::setProgress(progress); |
| 17 | if (!disp) { |
| 18 | disp = new ProgressDisplay(100); |
| 19 | } else if (progress == 0) { |
| 20 | disp->restart(100); |
| 21 | } |
| 22 | (*disp) += static_cast<unsigned long>(((100 * static_cast<float>(progress) / static_cast<float>(_maxProgress)) - disp->count())); |
| 23 | } |
| 24 | |
| 25 | void CmdLineProgressMonitor::setStatus(const std::string& status) { |
| 26 | ProgressMonitor::setStatus(status); |