summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Message.h
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-22 14:02:03 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-22 14:02:03 (GMT)
commit1fb6bcf30f954e426f2d3002d14887574fb941dd (patch)
tree08cff7f2b879c50efe79e3c04d255075522af862 /src/uscxml/Message.h
parent71c334bf4e35559496feac3f3cf00b72ceb88812 (diff)
downloaduscxml-1fb6bcf30f954e426f2d3002d14887574fb941dd.zip
uscxml-1fb6bcf30f954e426f2d3002d14887574fb941dd.tar.gz
uscxml-1fb6bcf30f954e426f2d3002d14887574fb941dd.tar.bz2
Major refactoring
- Moved tests - Changes to promela datamodel - Implemented Trie
Diffstat (limited to 'src/uscxml/Message.h')
-rw-r--r--src/uscxml/Message.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/uscxml/Message.h b/src/uscxml/Message.h
index afc30ad..57e8680 100644
--- a/src/uscxml/Message.h
+++ b/src/uscxml/Message.h
@@ -71,7 +71,7 @@ public:
};
Data() : type(INTERPRETED) {}
-
+
// TODO: default INTERPRETED is unfortunate
Data(const std::string& atom_, Type type_ = INTERPRETED) : atom(atom_), type(type_) {}
Data(const char* data, size_t size, const std::string& mimeType, bool adopt = false);
@@ -99,9 +99,9 @@ public:
// we will have to drop this constructor as it interferes with operator Data() and entails C++11
template <typename T>
Data(T value, typename std::enable_if<! std::is_base_of<Data, T>::value>::type* = nullptr)
- : atom(toStr(value)), type(INTERPRETED) {}
+ : atom(toStr(value)), type(INTERPRETED) {}
#endif
-
+
explicit Data(const Arabica::DOM::Node<std::string>& dom);
virtual ~Data() {}
@@ -119,7 +119,7 @@ public:
Data& operator[](const std::string& key) {
return operator[](key.c_str());
}
-
+
Data& operator[](const char* key) {
return compound[key];
}
@@ -143,7 +143,7 @@ public:
Data data;
return data;
}
-
+
const Data item(const size_t index) const {
if (array.size() < index) {
std::list<Data>::const_iterator arrayIter;
@@ -153,7 +153,7 @@ public:
Data data;
return data;
}
-
+
bool operator==(const Data &other) const {
if (other.atom.size() != atom.size())
return false;