summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Message.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-10-31 16:43:13 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-10-31 16:43:13 (GMT)
commit71e1b30a2dcb8eefae105a5562239e21f07768c7 (patch)
tree0c18610f809fecc06c89c1fa0e2c36e51498b7ba /src/uscxml/Message.cpp
parentcf67d5ccefd7092fdf5c2bc1284e74f4c3413c7b (diff)
downloaduscxml-71e1b30a2dcb8eefae105a5562239e21f07768c7.zip
uscxml-71e1b30a2dcb8eefae105a5562239e21f07768c7.tar.gz
uscxml-71e1b30a2dcb8eefae105a5562239e21f07768c7.tar.bz2
Moved Parser into DOMUtils and new node -> xpath function for debugging
Diffstat (limited to 'src/uscxml/Message.cpp')
-rw-r--r--src/uscxml/Message.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/uscxml/Message.cpp b/src/uscxml/Message.cpp
index fd39324..c79e08a 100644
--- a/src/uscxml/Message.cpp
+++ b/src/uscxml/Message.cpp
@@ -21,7 +21,7 @@
#include "uscxml/Common.h"
#include "uscxml/Message.h"
-//#include "uscxml/Interpreter.h"
+#include "uscxml/DOMUtils.h"
#include <DOM/SAX2DOM/SAX2DOM.hpp>
#include <SAX/helpers/CatchErrorHandler.hpp>
#include <glog/logging.h>
@@ -509,7 +509,7 @@ std::ostream& operator<< (std::ostream& os, const SendRequest& sendReq) {
indent += " ";
}
- os << indent<< "SendReq" << std::endl;
+ os << indent << "SendReq" << std::endl;
if (sendReq.target.size() > 0)
os << indent << " target: " << sendReq.target << std::endl;
@@ -628,6 +628,12 @@ std::string Data::toJSON(const Data& data) {
} else {
os << data.atom;
}
+ } else if (data.node) {
+ if (data.type == Data::VERBATIM) {
+ os << "";
+ } else {
+ os << data.atom;
+ }
} else {
os << "undefined";
}