libmoost
moost::murcl::uri_elements Class Reference

This class represents the basic elements that make up a standard uri. More...

#include <uri_elements.hpp>

List of all members.

Public Member Functions

 uri_elements (uri_scheme const &scheme, std::string const &host)
 construct a uri elements object
 uri_elements (uri_scheme const &scheme, std::string const &host, std::string const &path)
 construct a uri elements object
 uri_elements (uri_scheme const &scheme, std::string const &host, std::string const &path, uri_params const &params)
 construct a uri elements object
 uri_elements (uri_scheme const &scheme, std::string const &host, std::string const &path, uri_params::map_t const &map)
 construct a uri elements object
std::string const & get_scheme () const
 Get the scheme associated with this uri.
std::string const & get_host () const
 Get the host associated with this uri.
std::string const & get_port () const
 Get the port associated with this uri.
std::string const & get_path () const
 Get the path associated with this uri.
std::string const & get_params () const
 Get the params associated with this uri.

Private Member Functions

void encode ()

Private Attributes

std::string const scheme_
std::string const host_
std::string const port_
std::string const path_
std::string const params_

Detailed Description

This class represents the basic elements that make up a standard uri.

Definition at line 57 of file uri_elements.hpp.


Constructor & Destructor Documentation

moost::murcl::uri_elements::uri_elements ( uri_scheme const &  scheme,
std::string const &  host 
) [inline]

construct a uri elements object

Parameters:
schemethe uri scheme
hostthe uri host

Definition at line 68 of file uri_elements.hpp.

Here is the call graph for this function:

moost::murcl::uri_elements::uri_elements ( uri_scheme const &  scheme,
std::string const &  host,
std::string const &  path 
) [inline]

construct a uri elements object

Parameters:
schemethe uri scheme
hostthe uri host
paththe uri path

Definition at line 89 of file uri_elements.hpp.

Here is the call graph for this function:

moost::murcl::uri_elements::uri_elements ( uri_scheme const &  scheme,
std::string const &  host,
std::string const &  path,
uri_params const &  params 
) [inline]

construct a uri elements object

Parameters:
schemethe uri scheme
hostthe uri host
paththe uri path
paramsthe uri parameters

Definition at line 114 of file uri_elements.hpp.

Here is the call graph for this function:

moost::murcl::uri_elements::uri_elements ( uri_scheme const &  scheme,
std::string const &  host,
std::string const &  path,
uri_params::map_t const &  map 
) [inline]

construct a uri elements object

Parameters:
schemethe uri scheme
hostthe uri host
paththe uri path
mapa map of key/value strings to be converted to url parameters

Definition at line 141 of file uri_elements.hpp.

Here is the call graph for this function:


Member Function Documentation

void moost::murcl::uri_elements::encode ( ) [inline, private]

Definition at line 213 of file uri_elements.hpp.

Here is the caller graph for this function:

std::string const& moost::murcl::uri_elements::get_host ( ) const [inline]

Get the host associated with this uri.

Returns:
a string representing the host uri, encoded according to RFC-2396

Definition at line 173 of file uri_elements.hpp.

Here is the caller graph for this function:

std::string const& moost::murcl::uri_elements::get_params ( ) const [inline]

Get the params associated with this uri.

Returns:
a string representing the uri params, encoded according to RFC-2396

Definition at line 206 of file uri_elements.hpp.

Here is the caller graph for this function:

std::string const& moost::murcl::uri_elements::get_path ( ) const [inline]

Get the path associated with this uri.

Returns:
a string representing the path uri, encoded according to RFC-2396

Definition at line 195 of file uri_elements.hpp.

Here is the caller graph for this function:

std::string const& moost::murcl::uri_elements::get_port ( ) const [inline]

Get the port associated with this uri.

Returns:
a string representing the path

Definition at line 184 of file uri_elements.hpp.

Here is the caller graph for this function:

std::string const& moost::murcl::uri_elements::get_scheme ( ) const [inline]

Get the scheme associated with this uri.

Returns:
a string representing the scheme

Definition at line 162 of file uri_elements.hpp.

Here is the caller graph for this function:


Member Data Documentation

std::string const moost::murcl::uri_elements::host_ [private]

Definition at line 222 of file uri_elements.hpp.

std::string const moost::murcl::uri_elements::params_ [private]

Definition at line 225 of file uri_elements.hpp.

std::string const moost::murcl::uri_elements::path_ [private]

Definition at line 224 of file uri_elements.hpp.

std::string const moost::murcl::uri_elements::port_ [private]

Definition at line 223 of file uri_elements.hpp.

std::string const moost::murcl::uri_elements::scheme_ [private]

Definition at line 221 of file uri_elements.hpp.


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