Public Methods | |
| URI () | |
| Creates an empty URI. | |
| URI (const std::string &uri) | |
| Creates an URI from a string. | |
| URI (const URI &uri) | |
| Creates a copy from this URI. | |
| URI & | operator= (const URI &uri) |
| Creates a copy from this URI. | |
| URI & | operator= (const std::string &uri) |
| Creates an URI from a string. | |
| URI & | operator+= (const std::string &rhs) |
| Navigates within an URI. | |
| std::string | toString () const |
| Stringify the URI. | |
| bool | empty () const |
| Checks whether the URI is empty. | |
| const URIScheme & | scheme () const |
| Access the URI Scheme data. | |
| const std::string & | pathname () const |
| The full path name within the server. | |
| std::string | path () const |
| The path within the server (without the file). | |
| std::string | filename () const |
| The file within the server (may be empty). | |
Friends | |
| URI | operator+ (const URI &lhs, const std::string &rhs) |
| Navigates within an URI. | |
Holds all necessary data to locate a resource (file, data...) using many different networked or non-networked protocols. The syntax of a stringified URI follows RFC 1630 and RFC 1738.
The general syntax for creating URI is (using the URI constructor or the '=' operator):
You can also modify an existing URI (some also use the term 'navigate' in reference to web URLs) using the '+' or '+=' operators. The allowed URI syntaxes are then:
<absolute-path> or <relative-path> must end with a '/' in order to denote a directory. Otherwise, the last path part is considered to be a file name.
Examples of are the well known "http", "ftp", "file". It is also possible to use this URI for Win32 filesystem names such as "c:/MyFile.txt" for which the URI is "file://c:/MyFile.txt (the drive specification is then viewed as a "file" scheme option).
This class does not however support the Win32 '\' backslash path separator. Only forward slash '/' are accepted in order to maintain better portability across platforms.
|
|
Creates an empty URI.
|
|
|
Creates an URI from a string.
|
|
|
Creates a copy from this URI.
|
|
|
Checks whether the URI is empty.
|
|
|
The file within the server (may be empty).
|
|
|
Navigates within an URI.
|
|
|
Creates an URI from a string.
|
|
|
Creates a copy from this URI.
|
|
|
The path within the server (without the file).
|
|
|
The full path name within the server.
|
|
|
Access the URI Scheme data.
|
|
|
Stringify the URI.
|
|
||||||||||||
|
Navigates within an URI.
|
1.3-rc2