summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_stanza.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-04-15 04:11:27 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-04-15 04:11:27 +0200
commit7f74f62e56483bae6796be82d279c5180642d53b (patch)
treed0e98105c52531ae0df3931175e8b185c50e187e /src/xmpp/xmpp_stanza.hpp
parent020325dbb071f1735bceb80de9f982aefcd2de47 (diff)
parentc64bb0bde9dbf572bd4d3bbaf478ec812a2f12d6 (diff)
downloadbiboumi-7f74f62e56483bae6796be82d279c5180642d53b.tar.gz
biboumi-7f74f62e56483bae6796be82d279c5180642d53b.tar.bz2
biboumi-7f74f62e56483bae6796be82d279c5180642d53b.tar.xz
biboumi-7f74f62e56483bae6796be82d279c5180642d53b.zip
Merge branch 'master' into dummy_chan
Diffstat (limited to 'src/xmpp/xmpp_stanza.hpp')
-rw-r--r--src/xmpp/xmpp_stanza.hpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/xmpp/xmpp_stanza.hpp b/src/xmpp/xmpp_stanza.hpp
index d9bf81d..1c63b86 100644
--- a/src/xmpp/xmpp_stanza.hpp
+++ b/src/xmpp/xmpp_stanza.hpp
@@ -9,13 +9,6 @@ std::string xml_escape(const std::string& data);
std::string xml_unescape(const std::string& data);
/**
- * Raised on operator[] when the attribute does not exist
- */
-class AttributeNotFound: public std::exception
-{
-};
-
-/**
* Represent an XML node. It has
* - A parent XML node (in the case of the first-level nodes, the parent is
nullptr)
@@ -103,10 +96,10 @@ public:
*/
bool has_children() const;
/**
- * Gets the value for the given attribute, raises AttributeNotFound if the
+ * Gets the value for the given attribute, returns an empty string if the
* node as no such attribute.
*/
- const std::string& operator[](const std::string& name) const;
+ const std::string get_tag(const std::string& name) const;
/**
* Use this to set an attribute's value, like node["id"] = "12";
*/