summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_stanza.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/xmpp_stanza.cpp')
-rw-r--r--src/xmpp/xmpp_stanza.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_stanza.cpp b/src/xmpp/xmpp_stanza.cpp
index ab26304..a1a04ba 100644
--- a/src/xmpp/xmpp_stanza.cpp
+++ b/src/xmpp/xmpp_stanza.cpp
@@ -72,16 +72,31 @@ void XmlNode::set_tail(const std::string& data)
this->tail = data;
}
+void XmlNode::add_to_tail(const std::string& data)
+{
+ this->tail += data;
+}
+
void XmlNode::set_inner(const std::string& data)
{
this->inner = xml_escape(data);
}
+void XmlNode::add_to_inner(const std::string& data)
+{
+ this->inner += xml_escape(data);
+}
+
std::string XmlNode::get_inner() const
{
return this->inner;
}
+std::string XmlNode::get_tail() const
+{
+ return this->tail;
+}
+
XmlNode* XmlNode::get_child(const std::string& name) const
{
for (auto& child: this->children)