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; 
 
  124           const scheme_type& 
scheme()
 const {
return scheme_;} 
 
  126           const authority_type& 
authority()
 const {
return authority_;} 
 
  128           const path_type& 
path()
 const {
return path_;} 
 
  129           path_type& 
path() {
return path_;} 
 
  130           const query_type& 
query()
 const {
return query_;} 
 
  131           query_type& 
query() {
return query_;} 
 
  132           const fragment_type& 
fragment()
 const {
return fragment_;} 
 
  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 
 
bool empty() const 
Test if null/empty. 
 
URI authority component (without userinfo). 
 
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 authority_type & authority() const 
Get authority. 
 
fragment_type & fragment()
Get fragment. 
 
te::common::uri::fragment fragment_type
fragment type 
 
te::common::uri::scheme scheme_type
scheme type 
 
const path_type & path() const 
Get path. 
 
const query_type & query() const 
Get query. 
 
authority_type authority_
 
query_type & query()
Get query.