cppfs  1.2.0.5b71c2c98fb9
Cross-platform C++ file system library supporting multiple backends (Local-FS, SSH)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cppfs::Url Class Reference

Url wrapper. More...

#include <cppfs/include/cppfs/Url.h>

Public Member Functions

 Url ()
 Constructor. More...
 
 Url (const Url &url)
 Copy constructor. More...
 
 Url (Url &&url)
 Move constructor. More...
 
 Url (const std::string &url)
 Constructor. More...
 
 Url (std::string &&url)
 Constructor. More...
 
 Url (const char *url)
 Constructor. More...
 
virtual ~Url ()
 Destructor. More...
 
Urloperator= (const Url &url)
 Copy assignment operator. More...
 
Urloperator= (Url &&url)
 Move assignment operator. More...
 
const std::string & toString () const
 Get url as string. More...
 
const std::string & protocol () const
 Get protocol. More...
 
const std::string & location () const
 Get location. More...
 
const std::string & address () const
 Get address. More...
 
const std::string & path () const
 Get path. More...
 
const std::string & login () const
 Get login. More...
 
const std::string & host () const
 Get host. More...
 
const std::string & username () const
 Get user name. More...
 
const std::string & password () const
 Get password. More...
 

Protected Member Functions

void analyze () const
 Analyze url. More...
 

Protected Attributes

std::string m_url
 Url string. More...
 
bool m_analyzed
 'true' if Url has been analyzed, else 'false' More...
 
std::string m_protocol
 Protocol part (including "://") More...
 
std::string m_location
 Location (everything after the protocol part) More...
 
std::string m_address
 Address (including username, password, and hostname) More...
 
std::string m_path
 Path (everything after the address) More...
 
std::string m_login
 Login part (username and password) More...
 
std::string m_host
 Host name. More...
 
std::string m_username
 User name. More...
 
std::string m_password
 Password. More...
 

Detailed Description

Url wrapper.

This class is a wrapper that enables limited parsing of URLs.

Constructor & Destructor Documentation

cppfs::Url::Url ( )

Constructor.

cppfs::Url::Url ( const Url url)

Copy constructor.

Parameters
[in]urlUrl to copy
cppfs::Url::Url ( Url &&  url)

Move constructor.

Parameters
[in]urlUrl to move
cppfs::Url::Url ( const std::string &  url)

Constructor.

Parameters
[in]urlUrl
cppfs::Url::Url ( std::string &&  url)

Constructor.

Parameters
[in]urlUrl
cppfs::Url::Url ( const char *  url)

Constructor.

Parameters
[in]urlUrl
virtual cppfs::Url::~Url ( )
virtual

Destructor.

Member Function Documentation

Url& cppfs::Url::operator= ( const Url url)

Copy assignment operator.

Parameters
[in]urlRight-hand value to copy
Returns
Reference to this value
Url& cppfs::Url::operator= ( Url &&  url)

Move assignment operator.

Parameters
[in]urlRight-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

Analyze url.

Member Data Documentation

std::string cppfs::Url::m_url
protected

Url string.

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

Host name.

std::string cppfs::Url::m_username
mutableprotected

User name.

std::string cppfs::Url::m_password
mutableprotected

Password.


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