Poco::URI: added new constructor to create URI from Path

This commit is contained in:
Guenter Obiltschnig
2014-10-12 11:19:52 +02:00
parent 102413aed5
commit 50f1f12cab
4 changed files with 40 additions and 0 deletions

View File

@@ -27,6 +27,9 @@
namespace Poco {
class Path;
class Foundation_API URI
/// A Uniform Resource Identifier, as specified in RFC 3986.
///
@@ -72,6 +75,12 @@ public:
/// Creates an URI from a base URI and a relative URI, according to
/// the algorithm in section 5.2 of RFC 3986.
explicit URI(const Path& path);
/// Creates a URI from a path.
///
/// The path will be made absolute, and a file:// URI
/// will be built from it.
~URI();
/// Destroys the URI.