summaryrefslogtreecommitdiffstats
path: root/src/uscxml/messages/Data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/messages/Data.h')
-rw-r--r--src/uscxml/messages/Data.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/uscxml/messages/Data.h b/src/uscxml/messages/Data.h
index bf13409..9b5bea7 100644
--- a/src/uscxml/messages/Data.h
+++ b/src/uscxml/messages/Data.h
@@ -141,6 +141,14 @@ public:
return data;
}
+ void put(std::string key, const Data& data) {
+ compound[key] = data;
+ }
+
+ void put(size_t index, const Data& data) {
+ this[index] = data;
+ }
+
bool operator==(const Data &other) const {
if (other.atom.size() != atom.size())
return false;