MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / setProgress

Method setProgress

core/CmdLineProgressMonitor.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15void 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
25void CmdLineProgressMonitor::setStatus(const std::string& status) {
26 ProgressMonitor::setStatus(status);

Callers

nothing calls this directly

Calls 2

restartMethod · 0.80
countMethod · 0.80

Tested by

no test coverage detected