Exiv2
Loading...
Searching...
No Matches
Exiv2::Uri Class Reference

A container for URL components. It also provides the method to parse a URL to get the protocol, host, path, port, querystring, username, password. More...

#include <futils.hpp>

Static Public Member Functions

static Uri EXIV2API Parse (const std::string &uri)
 Parse the input URL to the protocol, host, path, username, password.
static void EXIV2API Decode (Uri &uri)
 Decode the url components.

Public Attributes

std::string QueryString
 URL query string.
std::string Path
 URL file path.
std::string Protocol
 URL protocol.
std::string Host
 URL host.
std::string Port
 URL port.
std::string Username
 URL username.
std::string Password
 URL password.

Detailed Description

A container for URL components. It also provides the method to parse a URL to get the protocol, host, path, port, querystring, username, password.

Source: http://stackoverflow.com/questions/2616011/easy-way-to-parse-a-url-in-c-cross-platform

Member Function Documentation

◆ Decode()

void Exiv2::Uri::Decode ( Uri & uri)
static

Decode the url components.

References Host, Password, Path, QueryString, Exiv2::urldecode(), and Username.

◆ Parse()

Uri Exiv2::Uri::Parse ( const std::string & uri)
static

Parse the input URL to the protocol, host, path, username, password.

References Host, Password, Path, Port, Protocol, QueryString, and Username.

Referenced by Exiv2::http().

Member Data Documentation

◆ Host

std::string Exiv2::Uri::Host

URL host.

Referenced by Decode(), Exiv2::http(), and Parse().

◆ Password

std::string Exiv2::Uri::Password

URL password.

Referenced by Decode(), and Parse().

◆ Path

std::string Exiv2::Uri::Path

URL file path.

Referenced by Decode(), and Parse().

◆ Port

std::string Exiv2::Uri::Port

URL port.

Referenced by Exiv2::http(), and Parse().

◆ Protocol

std::string Exiv2::Uri::Protocol

URL protocol.

Referenced by Parse().

◆ QueryString

std::string Exiv2::Uri::QueryString

URL query string.

Referenced by Decode(), and Parse().

◆ Username

std::string Exiv2::Uri::Username

URL username.

Referenced by Decode(), and Parse().


The documentation for this class was generated from the following files: