22 #ifndef __TERRALIB_COMMON_INTERNAL_QUERY_H    23 #define __TERRALIB_COMMON_INTERNAL_QUERY_H    24 #include "../Config.h"    62           query(
const std::string& v, 
bool dosort = 
false);
    66           bool sorted()
 const {
return sorted_;} 
    67           std::string encoding() 
const; 
    70           const_iterator find(
const std::string& key) 
const;
    73           iterator find(
const std::string& key);
    79           template<
typename T> 
bool find(
const std::string& key, T& value, 
bool& is_null)
 const {
    80               const_iterator it = find(key);
    83               is_null = !
convert(it->second, value);
    90           friend bool TECOMMONEXPORT parse(std::string::const_iterator& first, std::string::const_iterator last, 
query& v, std::string* errs);
   108       bool TECOMMONEXPORT parse(std::string::const_iterator& first, std::string::const_iterator last, 
query& v, std::string* errs = 0);
 static const char KEY_VALUE_SEP_CHAR
key-value separator char ('=') 
 
std::ostream & operator<<(std::ostream &os, const authority &v)
Stream out URI authority. 
 
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...
 
std::string encoding() const 
Calculate encoded string. 
 
static const char PAIRS_SEP_CHAR2
pairs separator char (';') // added by Lauro 
 
bool sorted() const 
Test if sort() has been called. 
 
#define TECOMMONEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
static const char PAIRS_SEP_CHAR
pairs separator char ('&') 
 
bool find(const std::string &key, T &value, bool &is_null) const 
Find the key and convert its associated value, returning true if the key is found and is_null true if...
 
std::string TECOMMONEXPORT convert(const path &v)
URI path to string.