aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/UI/Console/PercentPrinter.h
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2024-11-29 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2024-11-30 15:27:15 +0500
commite5431fa6f5505e385c6f9367260717e9c47dc2ee (patch)
tree4cd2c2c3b225b48c8e7053432c41d7b6b6a3d5f8 /CPP/7zip/UI/Console/PercentPrinter.h
parente008ce3976c087bfd21344af8f00a23cf69d4174 (diff)
download7zip-main.tar.gz
7zip-main.tar.bz2
7zip-main.zip
Diffstat (limited to 'CPP/7zip/UI/Console/PercentPrinter.h')
-rw-r--r--CPP/7zip/UI/Console/PercentPrinter.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/CPP/7zip/UI/Console/PercentPrinter.h b/CPP/7zip/UI/Console/PercentPrinter.h
index 46988a5..379aa1b 100644
--- a/CPP/7zip/UI/Console/PercentPrinter.h
+++ b/CPP/7zip/UI/Console/PercentPrinter.h
@@ -26,6 +26,13 @@ struct CPercentPrinterState
26 26
27class CPercentPrinter: public CPercentPrinterState 27class CPercentPrinter: public CPercentPrinterState
28{ 28{
29public:
30 CStdOutStream *_so;
31 bool DisablePrint;
32 bool NeedFlush;
33 unsigned MaxLen;
34
35private:
29 UInt32 _tickStep; 36 UInt32 _tickStep;
30 DWORD _prevTick; 37 DWORD _prevTick;
31 38
@@ -41,18 +48,13 @@ class CPercentPrinter: public CPercentPrinterState
41 void GetPercents(); 48 void GetPercents();
42 49
43public: 50public:
44 CStdOutStream *_so;
45
46 bool DisablePrint;
47 bool NeedFlush;
48 unsigned MaxLen;
49 51
50 CPercentPrinter(UInt32 tickStep = 200): 52 CPercentPrinter(UInt32 tickStep = 200):
51 _tickStep(tickStep),
52 _prevTick(0),
53 DisablePrint(false), 53 DisablePrint(false),
54 NeedFlush(true), 54 NeedFlush(true),
55 MaxLen(80 - 1) 55 MaxLen(80 - 1),
56 _tickStep(tickStep),
57 _prevTick(0)
56 {} 58 {}
57 59
58 ~CPercentPrinter(); 60 ~CPercentPrinter();