summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-09-26 12:16:01 +1000
committerTim Mayberry <mojofunk@gmail.com>2016-10-10 08:45:34 +1000
commit4b2987d0f2937c1d7c2e63ad573b7e8d4abf6614 (patch)
treec47b2fc5b32819e48179b92030811a12a1e82885 /libs/pbd/pbd
parent734a4c10e4460d6eff4c4f9037298084823ac593 (diff)
Add XMLNode::operator==/!=() for comparing XMLNode instances
Implemented to be able to test that when writing an XML document via XMLTree and then reading back into another XMLTree the structure is equivalent as a general API test of pbd/xml++.h to check for breakage when changing implementation.
Diffstat (limited to 'libs/pbd/pbd')
-rw-r--r--libs/pbd/pbd/xml++.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/pbd/pbd/xml++.h b/libs/pbd/pbd/xml++.h
index f0956edd25..fa55f11c35 100644
--- a/libs/pbd/pbd/xml++.h
+++ b/libs/pbd/pbd/xml++.h
@@ -101,6 +101,9 @@ public:
XMLNode& operator= (const XMLNode& other);
+ bool operator== (const XMLNode& other) const;
+ bool operator!= (const XMLNode& other) const;
+
const std::string& name() const { return _name; }
bool is_content() const { return _is_content; }