22 #ifndef CRNPROP3_HEADER
23 #define CRNPROP3_HEADER
48 Prop3(
int val) noexcept;
74 bool IsTrue() const noexcept;
83 int GetValue() const noexcept {
return value; }
#define CRN_SERIALIZATION_CONSTRUCTOR(classname)
Defines a default constructor from xml element.
bool operator==(const Prop3 &prop) const noexcept
Comparison.
Prop3 & operator=(const Prop3 &)=default
bool IsUnknown() const noexcept
Is unknown?
Prop3 operator!() const noexcept
Complementary operator.
void Deserialize(xml::Element &el)
Initializes the object from an XML element. Unsafe.
bool IsFalse() const noexcept
Is false?
bool IsTrue() const noexcept
Is true?
static constexpr int UNKNOWNval
Prop3() noexcept
Default constructor.
A UTF32 character string class.
Prop3 & operator|=(const Prop3 &prop) noexcept
Logical OR operator.
xml::Element Serialize(xml::Element &parent) const
Dumps the object to an XML element. Unsafe.
Prop3 operator&(const Prop3 &prop) const noexcept
Logical AND operator.
Prop3 operator|(const Prop3 &prop) const noexcept
Logical OR operator.
Prop3 & operator&=(const Prop3 &prop) noexcept
Logical AND operator.
int GetValue() const noexcept
Returns the internal integer value.
#define CRN_DECLARE_CLASS_CONSTRUCTOR(classname)
Declares a class constructor.
CRN_ALIAS_SMART_PTR(ImageBW)
static constexpr int TRUEval
static constexpr int FALSEval
String ToString() const
Dumps value to a string.