diff options
Diffstat (limited to 'CPP/7zip/UI/Console/HashCon.h')
-rw-r--r-- | CPP/7zip/UI/Console/HashCon.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/CPP/7zip/UI/Console/HashCon.h b/CPP/7zip/UI/Console/HashCon.h index 7d3c72fd..5b30b69a 100644 --- a/CPP/7zip/UI/Console/HashCon.h +++ b/CPP/7zip/UI/Console/HashCon.h @@ -9,18 +9,40 @@ class CHashCallbackConsole: public IHashCallbackUI, public CCallbackConsoleBase { - UString m_FileName; + UString _fileName; + AString _s; + + void AddSpacesBeforeName() + { + _s.Add_Space(); + _s.Add_Space(); + } void PrintSeparatorLine(const CObjectVector<CHasherState> &hashers); void PrintResultLine(UInt64 fileSize, const CObjectVector<CHasherState> &hashers, unsigned digestIndex, bool showHash); void PrintProperty(const char *name, UInt64 value); + public: + bool PrintNameInPercents; + + bool PrintHeaders; + + bool PrintSize; + bool PrintName; + + CHashCallbackConsole(): + PrintNameInPercents(true), + PrintHeaders(false), + PrintSize(true), + PrintName(true) + {} + ~CHashCallbackConsole() { } INTERFACE_IHashCallbackUI(;) }; -void PrintHashStat(CStdOutStream &stdStream, const CHashBundle &hb); +void PrintHashStat(CStdOutStream &so, const CHashBundle &hb); #endif |