40 if ((val == TRUEval) || (val == FALSEval))
42 else if (val ==
int(
TRUE))
77 if ((prop.value == TRUEval) || (value == TRUEval))
78 return Prop3(TRUEval);
79 if ((prop.value == FALSEval) && (value == FALSEval))
80 return Prop3(FALSEval);
81 return Prop3(UNKNOWNval);
93 if ((prop.value == FALSEval) || (value == FALSEval))
94 return Prop3(FALSEval);
95 if ((prop.value == TRUEval) && (value == TRUEval))
96 return Prop3(TRUEval);
97 return Prop3(UNKNOWNval);
109 return prop.value == value;
121 return (*
this =
Prop3(prop));
147 if ((prop.value == TRUEval) || (value == TRUEval))
149 else if ((prop.value == FALSEval) && (value == FALSEval))
165 if ((prop.value == FALSEval) || (value == FALSEval))
167 else if ((prop.value == TRUEval) && (value == TRUEval))
194 _(
"Wrong XML element."));
215 Cloner::Register<Prop3>();
bool operator==(const Prop3 &prop) const noexcept
Comparison.
Prop3 & operator=(const Prop3 &)=default
StringUTF8 GetName() const
Gets the label of the element.
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?
#define CRN_END_CLASS_CONSTRUCTOR(classname)
Defines a class constructor.
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.
#define CRN_DATA_FACTORY_REGISTER(elemname, classname)
Registers a class to the data factory.
void SetAttribute(const StringUTF8 &name, const StringUTF8 &value)
Sets the value of an attribute.
T GetAttribute(const StringUTF8 &name, bool silent=true) const
Gets an attribute.
Prop3 operator|(const Prop3 &prop) const noexcept
Logical OR operator.
Prop3 & operator&=(const Prop3 &prop) noexcept
Logical AND operator.
A character string class.
static constexpr int TRUEval
static constexpr int FALSEval
Element PushBackElement(const StringUTF8 &name)
Adds an element at the end of the children list.
String ToString() const
Dumps value to a string.
Invalid argument error (e.g.: nullptr pointer)
#define CRN_BEGIN_CLASS_CONSTRUCTOR(classname)
Defines a class constructor.