dmlite  0.6
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
dmlite::Url Class Reference

#include <urls.h>

Collaboration diagram for dmlite::Url:
Collaboration graph
[legend]

Public Member Functions

 Url () throw ()
 
 Url (const std::string &url) throw ()
 
 Url (const Url &_u)
 
bool operator== (const Url &) const
 
bool operator!= (const Url &) const
 
bool operator< (const Url &) const
 
bool operator> (const Url &) const
 
Urloperator= (const Url &_u)
 
std::string queryToString (void) const
 
void queryFromString (const std::string &str)
 
std::string toString (void) const
 

Static Public Member Functions

static std::vector< std::string > splitPath (const std::string &path) throw ()
 
static std::string joinPath (const std::vector< std::string > &components) throw ()
 Build a path from a list of components. More...
 
static std::string normalizePath (const std::string &path, const bool add_trailing_slash=true) throw ()
 Remove multiple slashes. More...
 

Public Attributes

std::string scheme
 
std::string domain
 
unsigned port
 
std::string path
 
Extensible query
 

Constructor & Destructor Documentation

dmlite::Url::Url ( )
throw (
)
dmlite::Url::Url ( const std::string &  url)
throw (
)
explicit
dmlite::Url::Url ( const Url _u)

Member Function Documentation

static std::string dmlite::Url::joinPath ( const std::vector< std::string > &  components)
throw (
)
static

Build a path from a list of components.

static std::string dmlite::Url::normalizePath ( const std::string &  path,
const bool  add_trailing_slash = true 
)
throw (
)
static

Remove multiple slashes.

bool dmlite::Url::operator!= ( const Url ) const
bool dmlite::Url::operator< ( const Url ) const
Url& dmlite::Url::operator= ( const Url _u)
bool dmlite::Url::operator== ( const Url ) const
bool dmlite::Url::operator> ( const Url ) const
void dmlite::Url::queryFromString ( const std::string &  str)
std::string dmlite::Url::queryToString ( void  ) const
static std::vector<std::string> dmlite::Url::splitPath ( const std::string &  path)
throw (
)
static

Split a path into a list of components.

Parameters
pathThe path to split.
Returns
A list with the extracted components.
std::string dmlite::Url::toString ( void  ) const

Member Data Documentation

std::string dmlite::Url::domain
std::string dmlite::Url::path
unsigned dmlite::Url::port
Extensible dmlite::Url::query
std::string dmlite::Url::scheme

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