Sirikata
Classes | Public Member Functions | Private Attributes
Sirikata::Transfer::URI Class Reference

A URI is very generic: it is only assumed to have a scheme, a colon, and a scheme specific part. More...

#include <URI.hpp>

Collaboration diagram for Sirikata::Transfer::URI:

List of all members.

Classes

struct  Hasher

Public Member Functions

 URI ()
 URI (const String &uri)
 Construct a URI from a String.
const String & scheme () const
String schemeSpecificPart () const
const String & toString () const
bool operator< (const URI &other) const
bool operator== (const URI &other) const
bool operator!= (const URI &other) const
bool empty () const
 operator bool () const

Private Attributes

String mURI
String mScheme

Detailed Description

A URI is very generic: it is only assumed to have a scheme, a colon, and a scheme specific part.

This class is mainly for passing around the raw URI and providing minimal support for converting it into more specific versions, e.g. URLs, data URIs, etc.


Constructor & Destructor Documentation

Sirikata::Transfer::URI::URI ( ) [inline, explicit]
Sirikata::Transfer::URI::URI ( const String &  uri) [inline, explicit]

Construct a URI from a String.

If the URI cannot be parsed (i.e. we cannot extract a valid scheme), the URI remains empty.

References mScheme, and mURI.


Member Function Documentation

bool Sirikata::Transfer::URI::empty ( ) const [inline]
Sirikata::Transfer::URI::operator bool ( ) const [inline]

References empty().

bool Sirikata::Transfer::URI::operator!= ( const URI other) const [inline]

References mURI.

bool Sirikata::Transfer::URI::operator< ( const URI other) const [inline]

References mURI.

bool Sirikata::Transfer::URI::operator== ( const URI other) const [inline]

References mURI.

const String& Sirikata::Transfer::URI::scheme ( ) const [inline]
String Sirikata::Transfer::URI::schemeSpecificPart ( ) const [inline]

References mScheme, and mURI.

const String& Sirikata::Transfer::URI::toString ( ) const [inline]

Member Data Documentation

Referenced by scheme(), schemeSpecificPart(), and URI().


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