blob: cfeb5cf901eb6bc7230a680094877c5265e55b26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|