libmoost
moost::murcl::uri_scheme Class Reference

This class is a base class for all supported uri schemes. More...

#include <uri_scheme.hpp>

Inheritance diagram for moost::murcl::uri_scheme:

List of all members.

Classes

struct  port
 A enum of supported schemes and their associated default ports. More...

Public Member Functions

std::string const & get () const
 Gets a string representation of a valid uri scheme.
int get_port () const
 Get the port number associated with this scheme.

Protected Member Functions

 uri_scheme (std::string const &scheme, int port)

Private Attributes

std::string scheme_
int port_

Detailed Description

This class is a base class for all supported uri schemes.

Definition at line 47 of file uri_scheme.hpp.


Constructor & Destructor Documentation

moost::murcl::uri_scheme::uri_scheme ( std::string const &  scheme,
int  port 
) [inline, protected]

Definition at line 84 of file uri_scheme.hpp.


Member Function Documentation

std::string const& moost::murcl::uri_scheme::get ( ) const [inline]

Gets a string representation of a valid uri scheme.

Returns:
string representation of the scheme

Definition at line 67 of file uri_scheme.hpp.

int moost::murcl::uri_scheme::get_port ( ) const [inline]

Get the port number associated with this scheme.

Returns:
The port as an integer value

Definition at line 78 of file uri_scheme.hpp.


Member Data Documentation

Definition at line 95 of file uri_scheme.hpp.

std::string moost::murcl::uri_scheme::scheme_ [private]

Definition at line 94 of file uri_scheme.hpp.


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