misc::URI Class Reference

URI parser class. More...

#include <uri.h>

List of all members.

Public Types

typedef std::map
< std::string,
std::string > 
parameters_t
 The query map type.

Public Member Functions

 URI ()
 Constructor.
 URI (std::string const &uri)
 Constructor assigning a URI.
 URI (char const *uri)
 Constructor assigning a URI, char const * version.
 URI (URI const &uri)
 Copy constructor.
URIoperator= (URI const &right)
 Assignment operator.
bool operator== (URI const &right)
 == operator.
bool operator!= (URI const &right)
 != operator.
bool assign (std::string const &uri)
 Assigns a URI.
bool assign (char const *uri)
 Same as assign(std::string const &) but with a char const * parameter.
void clear ()
 Clears the object from its URI.
std::string const & uri () const
 Returns the full URI.
std::string const & scheme () const
 Returns the URI scheme.
std::string const & contents () const
 Returns the URI scheme-specific part.
std::string const & authority () const
 Returns the URI authority.
std::string const & path () const
 Returns the URI path.
std::string const & query () const
 Returns the URI query.
std::string const & hostname () const
 Returns the URI hostname.
uint16_t port () const
 Returns the URI port.
std::string const & username () const
 Returns the URI username.
std::string const & password () const
 Returns the URI password.
parameters_t const & parameters () const
 Returns the URI parameters as a map.


Detailed Description

This class parses a URI and allows subsequent access to each of its parts.

Member Function Documentation

bool misc::URI::assign ( std::string const &  uri  )  [inline]

Assigns a URI.

Parameters:
[in] uri The URI that will be parsed.
Returns:
true if the URI has been parsed successfully, false otherwise.


The documentation for this class was generated from the following file:
Generated on Fri Apr 18 22:03:28 2008 for Epona API by  doxygen 1.5.3