summaryrefslogtreecommitdiffstats
path: root/src/uscxml/messages
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-02-03 15:30:56 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-02-03 15:30:56 (GMT)
commitf7670b8d975d2d686095e98e7e7cc781b69dad0c (patch)
tree9df4dd3e721fbd26a4db14e5d3bc94cf88b8acf5 /src/uscxml/messages
parent074e8a7db78bba7bdc184f6d18d16c2ab8045fed (diff)
downloaduscxml-f7670b8d975d2d686095e98e7e7cc781b69dad0c.zip
uscxml-f7670b8d975d2d686095e98e7e7cc781b69dad0c.tar.gz
uscxml-f7670b8d975d2d686095e98e7e7cc781b69dad0c.tar.bz2
Reduced dependencies to compile test-gen-c to smaller executable
Diffstat (limited to 'src/uscxml/messages')
-rw-r--r--src/uscxml/messages/Data.cpp4
-rw-r--r--src/uscxml/messages/Event.cpp1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/uscxml/messages/Data.cpp b/src/uscxml/messages/Data.cpp
index 8853b19..51e1191 100644
--- a/src/uscxml/messages/Data.cpp
+++ b/src/uscxml/messages/Data.cpp
@@ -22,7 +22,9 @@
#include <boost/algorithm/string.hpp>
+#ifndef NO_XERCESC
#include "uscxml/util/DOM.h"
+#endif
#include "uscxml/interpreter/Logging.h"
@@ -262,6 +264,7 @@ std::string Data::toJSON(const Data& data) {
} else {
os << data.atom;
}
+#ifndef NO_XERCESC
} else if (data.node) {
std::ostringstream xmlSerSS;
xmlSerSS << *data.node;
@@ -270,6 +273,7 @@ std::string Data::toJSON(const Data& data) {
// boost::replace_all(xmlSer, "\n", "\\n");
// boost::replace_all(xmlSer, "\t", "\\t");
os << "\"" << jsonEscape(xmlSer) << "\"";
+#endif
} else {
if (data.type == Data::VERBATIM) {
os << "\"\""; // empty string
diff --git a/src/uscxml/messages/Event.cpp b/src/uscxml/messages/Event.cpp
index f667e92..f657ddb 100644
--- a/src/uscxml/messages/Event.cpp
+++ b/src/uscxml/messages/Event.cpp
@@ -18,7 +18,6 @@
*/
#include "uscxml/messages/Event.h"
-#include "uscxml/util/DOM.h"
namespace uscxml {