24 #ifndef _ODSAVESTATE_INCLUDED_
25 #define _ODSAVESTATE_INCLUDED_
66 operator const T&()
const
73 #define OdSaveStateFlagDef(type, flag, name, flags) \
74 const type _##name##Flag = flag; \
75 OdSaveStateFlagImpl<type, _##name##Flag> name(flags)
76 #define OdSaveStateFlag(type, flag, name, flags, newVal) \
77 const type _##name##Flag = flag; \
78 OdSaveStateFlagImpl<type, _##name##Flag> name(flags, newVal)
80 #define OdSaveStateFlagDef(type, flag, name, flags) \
81 OdSaveStateFlagImpl<type, flag> name(flags)
82 #define OdSaveStateFlag(type, flag, name, flags, newVal) \
83 OdSaveStateFlagImpl<type, flag> name(flags, newVal)
90 template <
class T, T flag>
100 m_oldValue =
GETBIT(m_val, flag);
104 m_oldValue =
GETBIT(m_val, flag);
105 SETBIT(m_val, flag, bNewValue);
109 SETBIT(m_val, flag, m_oldValue);
114 operator bool()
const
122 #endif //#ifndef _ODSAVESTATE_INCLUDED_