diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-06 20:34:05 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-06 20:34:05 (GMT) |
commit | 81079295b8be14128b7e532d504b32280360532e (patch) | |
tree | 649f93c2059dcc2a7cf5bd4ace17c18c6913ac64 /src/uscxml/URL.h | |
parent | e385ba8adb0c77fea20c58c45b966193c23a4570 (diff) | |
download | uscxml-81079295b8be14128b7e532d504b32280360532e.zip uscxml-81079295b8be14128b7e532d504b32280360532e.tar.gz uscxml-81079295b8be14128b7e532d504b32280360532e.tar.bz2 |
Fixed issue with temporary files
Diffstat (limited to 'src/uscxml/URL.h')
-rw-r--r-- | src/uscxml/URL.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/uscxml/URL.h b/src/uscxml/URL.h index df93e60..0e47607 100644 --- a/src/uscxml/URL.h +++ b/src/uscxml/URL.h @@ -6,6 +6,7 @@ #include <iostream> #include <sstream> #include <map> +#include <vector> #include <set> #include <boost/shared_ptr.hpp> #include <boost/enable_shared_from_this.hpp> @@ -59,6 +60,9 @@ public: const std::string path() const { return _uri.path(); } + const std::vector<std::string> pathComponents() const { + return _pathComponents; + } const std::string asString() const { return _uri.as_string(); } @@ -87,6 +91,8 @@ protected: URLImpl() : _handle(NULL), _isDownloaded(false), _hasFailed(false) {} std::string getLocalFilename(const std::string& suffix); + CURL* getCurlHandle(); + std::string _outContent; std::map<std::string, std::string> _outHeader; std::string _requestType; @@ -96,6 +102,8 @@ protected: std::stringstream _inHeader; Arabica::io::URI _uri; + std::vector<std::string> _pathComponents; + bool _isDownloaded; bool _hasFailed; @@ -193,6 +201,9 @@ public: const std::string path() const { return _impl->path(); } + const std::vector<std::string> pathComponents() const { + return _impl->pathComponents(); + } const std::string asString() const { return _impl->asString(); } |