aboutsummaryrefslogtreecommitdiff
path: root/include/Uri/Uri.hpp
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2018-07-02 21:21:48 -0700
committerRichard Walters <rwalters@digitalstirling.com>2018-07-02 21:21:48 -0700
commit1af6861f8db57b54ba19b80964eb00c5f7340bfb (patch)
treefe836a46b281a41cbee62a3519a80c73264f2b8a /include/Uri/Uri.hpp
parent6974150a2c6b3b4e0fa278b08de8b2647d2c95ed (diff)
Add capability to compare Uri objects.
* Code the neat example in section 6.2.2 of the RFC. * Add equality/inequality operators for Uri.
Diffstat (limited to 'include/Uri/Uri.hpp')
-rw-r--r--include/Uri/Uri.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/Uri/Uri.hpp b/include/Uri/Uri.hpp
index afdb631..b64f0da 100644
--- a/include/Uri/Uri.hpp
+++ b/include/Uri/Uri.hpp
@@ -37,6 +37,30 @@ namespace Uri {
Uri();
/**
+ * This is the equality comparison operator for the class.
+ *
+ * @param[in] other
+ * This is the other URI to which to compare this URI.
+ *
+ * @return
+ * An indication of whether or not the two URIs are
+ * equal is returned.
+ */
+ bool operator==(const Uri& other) const;
+
+ /**
+ * This is the inequality comparison operator for the class.
+ *
+ * @param[in] other
+ * This is the other URI to which to compare this URI.
+ *
+ * @return
+ * An indication of whether or not the two URIs are
+ * not equal is returned.
+ */
+ bool operator!=(const Uri& other) const;
+
+ /**
* This method builds the URI from the elements parsed
* from the given string rendering of a URI.
*