20 #if !defined(ZIPARCHIVE_BITFLAG_DOT_H)
21 #define ZIPARCHIVE_BITFLAG_DOT_H
27 namespace ZipArchiveLib
91 bool IsSetAny(
int flags)
const
93 return (m_value & flags) != 0;
106 bool IsSetAll(
int flags)
const
108 return (m_value & flags) == flags;
121 bool SetWithCheck(
int flags)
123 if (!IsSetAll(flags))
141 bool ClearWithCheck(
int flags)
163 bool ChangeWithCheck(
int flags,
bool set)
165 return set ? SetWithCheck(flags) : ClearWithCheck(flags);
177 void Change(
int flags,
bool set)
179 set ? Set(flags) : Clear(flags);
196 bool operator == (
int value)
198 return m_value == value;
201 bool operator == (
const CBitFlag& flag)
203 return m_value == flag.m_value;