comparison base/ProgressPrinter.cpp @ 515:1aefb666ecfc

* writer flush
author Chris Cannam
date Wed, 10 Dec 2008 16:24:31 +0000
parents beb2948baa77
children 77b4ce536d8f
comparison
equal deleted inserted replaced
514:6acdddf6f99e 515:1aefb666ecfc
50 { 50 {
51 m_prefix = message; 51 m_prefix = message;
52 } 52 }
53 53
54 void 54 void
55 ProgressPrinter::done()
56 {
57 setProgress(100);
58 }
59
60 void
55 ProgressPrinter::setProgress(int progress) 61 ProgressPrinter::setProgress(int progress)
56 { 62 {
57 if (progress == m_lastProgress) return; 63 if (progress == m_lastProgress) return;
58 if (progress == 100) std::cerr << "\r\n"; 64 if (progress == 100) std::cerr << "\r\n";
59 else { 65 else {