1 // Common/MyTypes.h 2 3 #ifndef __COMMON_MY_TYPES_H 4 #define __COMMON_MY_TYPES_H 5 6 #include "../../C/7zTypes.h" 7 8 typedef int HRes; 9 10 struct CBoolPair 11 { 12 bool Val; 13 bool Def; 14 CBoolPairCBoolPair15 CBoolPair(): Val(false), Def(false) {} 16 InitCBoolPair17 void Init() 18 { 19 Val = false; 20 Def = false; 21 } 22 SetTrueTrueCBoolPair23 void SetTrueTrue() 24 { 25 Val = true; 26 Def = true; 27 } 28 }; 29 30 #define CLASS_NO_COPY(cls) \ 31 private: \ 32 cls(const cls &); \ 33 cls &operator=(const cls &); 34 35 #endif 36