aboutsummaryrefslogtreecommitdiff
path: root/src/xml/XmlNode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/XmlNode.cpp')
-rw-r--r--src/xml/XmlNode.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/xml/XmlNode.cpp b/src/xml/XmlNode.cpp
new file mode 100644
index 00000000..cfeb5cf9
--- /dev/null
+++ b/src/xml/XmlNode.cpp
@@ -0,0 +1,14 @@
+#include "cru/xml/XmlNode.hpp"
+
+namespace cru::xml {
+bool operator==(const XmlNode& lhs, const XmlNode& rhs) {
+ return lhs.GetType() == rhs.GetType() && lhs.GetText() == rhs.GetText() &&
+ lhs.GetTag() == rhs.GetTag() &&
+ lhs.GetAttributes() == rhs.GetAttributes() &&
+ lhs.GetChildren() == rhs.GetChildren();
+}
+
+bool operator!=(const XmlNode& lhs, const XmlNode& rhs) {
+ return !(lhs == rhs);
+}
+} // namespace cru::xml