1 // Common/MyTypes.h 2 3 #ifndef ZIP7_INC_COMMON_MY_TYPES_H 4 #define ZIP7_INC_COMMON_MY_TYPES_H 5 6 #include "../../C/7zTypes.h" 7 #include "Common.h" 8 9 typedef int HRes; 10 11 struct CBoolPair 12 { 13 bool Val; 14 bool Def; 15 CBoolPairCBoolPair16 CBoolPair(): Val(false), Def(false) {} 17 InitCBoolPair18 void Init() 19 { 20 Val = false; 21 Def = false; 22 } 23 SetTrueTrueCBoolPair24 void SetTrueTrue() 25 { 26 Val = true; 27 Def = true; 28 } 29 SetVal_as_DefinedCBoolPair30 void SetVal_as_Defined(bool val) 31 { 32 Val = val; 33 Def = true; 34 } 35 }; 36 37 #endif 38