summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Interpreter.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-22 17:31:52 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-22 17:31:52 (GMT)
commita1dd0a039f6579793bf5272898609b29f19a49c2 (patch)
tree26f125497328ffadae0c777ea47457ea454b3759 /src/uscxml/Interpreter.cpp
parente0a00d0f3c202d52444a1e73e4f362a3a064ca26 (diff)
downloaduscxml-a1dd0a039f6579793bf5272898609b29f19a49c2.zip
uscxml-a1dd0a039f6579793bf5272898609b29f19a49c2.tar.gz
uscxml-a1dd0a039f6579793bf5272898609b29f19a49c2.tar.bz2
Added php directors and fixed Interpreter::fromString
Diffstat (limited to 'src/uscxml/Interpreter.cpp')
-rw-r--r--src/uscxml/Interpreter.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp
index 4ae4689..93d152e 100644
--- a/src/uscxml/Interpreter.cpp
+++ b/src/uscxml/Interpreter.cpp
@@ -78,8 +78,15 @@ Interpreter* Interpreter::fromURI(const std::string& uri) {
// this is required for windows filenames and does not harm on unices
if (boost::iequals(absUrl.scheme(), "file")) {
inputSource.setSystemId(absUrl.path());
- } else {
+ } else if (boost::iequals(absUrl.scheme(), "http")) {
+ // handle http per arabica
inputSource.setSystemId(absUrl.asString());
+ } else {
+ // use curl for everything else
+ std::stringstream ss;
+ ss << absUrl;
+ ss.seekg(0);
+ inputSource.setByteStream(ss);
}
Interpreter* interpreter = fromInputSource(inputSource);