43 #ifndef __TERRALIB_COMMON_INTERNAL_URI_H 44 #define __TERRALIB_COMMON_INTERNAL_URI_H 45 #include "../Config.h" 120 uri(
const std::string& v);
121 bool empty()
const {
return is_null();}
122 bool is_null()
const;
134 std::string encoding()
const;
137 friend bool TECOMMONEXPORT parse(std::string::const_iterator& first, std::string::const_iterator last,
uri& v, std::string* errs);
138 static bool parse_literal(std::string::const_iterator& first, std::string::const_iterator last,
const char* v);
151 bool TECOMMONEXPORT parse(std::string::const_iterator& first, std::string::const_iterator last,
uri& v, std::string* errs = 0);
153 inline std::ostream&
operator <<(std::ostream& os,
const uri& v) {
return v.operator <<(os);}
authority_type & authority()
Get authority.
path_type & path()
Get path.
bool relative() const
Test if relative (null scheme).
scheme_type & scheme()
Get scheme (null if relative).
std::ostream & operator<<(std::ostream &os, const authority &v)
Stream out URI authority.
const scheme_type & scheme() const
Get scheme (null if relative).
Uniform Resource Identifier (URI) reference.
bool TECOMMONEXPORT parse(std::string::const_iterator &first, std::string::const_iterator last, authority &v)
Parse URI authority, returning whether found or not and advancing first and setting authority if foun...
te::common::uri::authority authority_type
authority type
te::common::uri::query query_type
query type
URI authority component (without userinfo).
const path_type & path() const
Get path.
const fragment_type & fragment() const
Get fragment.
#define TECOMMONEXPORT
You can use this macro in order to export/import classes and functions from this module.
te::common::uri::path path_type
path type
const query_type & query() const
Get query.
fragment_type & fragment()
Get fragment.
const authority_type & authority() const
Get authority.
te::common::uri::fragment fragment_type
fragment type
te::common::uri::scheme scheme_type
scheme type
bool empty() const
Test if null/empty.
authority_type authority_
query_type & query()
Get query.