diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-22 17:31:52 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-22 17:31:52 (GMT) |
commit | a1dd0a039f6579793bf5272898609b29f19a49c2 (patch) | |
tree | 26f125497328ffadae0c777ea47457ea454b3759 /src/uscxml/Interpreter.cpp | |
parent | e0a00d0f3c202d52444a1e73e4f362a3a064ca26 (diff) | |
download | uscxml-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.cpp | 9 |
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); |