Url wrapper.
More...
#include <cppfs/include/cppfs/Url.h>
Url wrapper.
This class is a wrapper that enables limited parsing of URLs.
cppfs::Url::Url |
( |
const Url & |
url | ) |
|
Copy constructor.
- Parameters
-
cppfs::Url::Url |
( |
Url && |
url | ) |
|
Move constructor.
- Parameters
-
cppfs::Url::Url |
( |
const std::string & |
url | ) |
|
cppfs::Url::Url |
( |
std::string && |
url | ) |
|
cppfs::Url::Url |
( |
const char * |
url | ) |
|
virtual cppfs::Url::~Url |
( |
| ) |
|
|
virtual |
Url& cppfs::Url::operator= |
( |
const Url & |
url | ) |
|
Copy assignment operator.
- Parameters
-
[in] | url | Right-hand value to copy |
- Returns
- Reference to this value
Url& cppfs::Url::operator= |
( |
Url && |
url | ) |
|
Move assignment operator.
- Parameters
-
[in] | url | Right-hand value to move |
- Returns
- Reference to this value
const std::string& cppfs::Url::toString |
( |
| ) |
const |
Get url as string.
- Returns
- Url
const std::string& cppfs::Url::protocol |
( |
| ) |
const |
Get protocol.
- Returns
- Protocol part (including "://")
const std::string& cppfs::Url::location |
( |
| ) |
const |
Get location.
- Returns
- Location (everything after the protocol part)
const std::string& cppfs::Url::address |
( |
| ) |
const |
Get address.
- Returns
- Address (including username, password, and hostname)
const std::string& cppfs::Url::path |
( |
| ) |
const |
Get path.
- Returns
- Path (everything after the address)
const std::string& cppfs::Url::login |
( |
| ) |
const |
Get login.
- Returns
- Login part (username and password)
const std::string& cppfs::Url::host |
( |
| ) |
const |
Get host.
- Returns
- Host name
const std::string& cppfs::Url::username |
( |
| ) |
const |
Get user name.
- Returns
- User name
const std::string& cppfs::Url::password |
( |
| ) |
const |
Get password.
- Returns
- Password
void cppfs::Url::analyze |
( |
| ) |
const |
|
protected |
std::string cppfs::Url::m_url |
|
protected |
bool cppfs::Url::m_analyzed |
|
mutableprotected |
'true' if Url has been analyzed, else 'false'
std::string cppfs::Url::m_protocol |
|
mutableprotected |
Protocol part (including "://")
std::string cppfs::Url::m_location |
|
mutableprotected |
Location (everything after the protocol part)
std::string cppfs::Url::m_address |
|
mutableprotected |
Address (including username, password, and hostname)
std::string cppfs::Url::m_path |
|
mutableprotected |
Path (everything after the address)
std::string cppfs::Url::m_login |
|
mutableprotected |
Login part (username and password)
std::string cppfs::Url::m_host |
|
mutableprotected |
std::string cppfs::Url::m_username |
|
mutableprotected |
std::string cppfs::Url::m_password |
|
mutableprotected |
The documentation for this class was generated from the following file: