3 #ifndef __PERCENTPRINTER_H
4 #define __PERCENTPRINTER_H
6 #include "Common/Types.h"
7 #include "Common/StdOutStream.h"
17 CStdOutStream *OutStream;
19 CPercentPrinter(UInt64 minStepSize = 1): m_MinStepSize(minStepSize),
20 m_PrevValue(0), m_CurValue(0), m_Total(1), m_NumExtraChars(0) {}
21 void SetTotal(UInt64 total) { m_Total = total; m_PrevValue = 0; }
22 void SetRatio(UInt64 doneValue) { m_CurValue = doneValue; }
23 void PrintString(const char *s);
24 void PrintString(const wchar_t *s);