1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/other-licenses/7zstub/src/7zip/Archive/7z/7zMethodID.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +// 7zMethodID.h 1.5 + 1.6 +#ifndef __7Z_METHOD_ID_H 1.7 +#define __7Z_METHOD_ID_H 1.8 + 1.9 +#include "../../../Common/String.h" 1.10 +#include "../../../Common/Types.h" 1.11 + 1.12 +namespace NArchive { 1.13 +namespace N7z { 1.14 + 1.15 +const int kMethodIDSize = 15; 1.16 + 1.17 +struct CMethodID 1.18 +{ 1.19 + Byte ID[kMethodIDSize]; 1.20 + Byte IDSize; 1.21 + UString ConvertToString() const; 1.22 + bool ConvertFromString(const UString &srcString); 1.23 +}; 1.24 + 1.25 +bool operator==(const CMethodID &a1, const CMethodID &a2); 1.26 + 1.27 +inline bool operator!=(const CMethodID &a1, const CMethodID &a2) 1.28 + { return !(a1 == a2); } 1.29 + 1.30 +}} 1.31 + 1.32 +#endif