22 #ifndef __TERRALIB_COMMON_INTERNAL_IP_ADDRESS_H 23 #define __TERRALIB_COMMON_INTERNAL_IP_ADDRESS_H 24 #include "../Config.h" 54 bool is_null()
const {
return !octets_[0] && !octets_[1] && !octets_[2] && !octets_[3];}
55 std::string string()
const;
61 unsigned char octets_[4];
68 bool TECOMMONEXPORT parse(std::string::const_iterator& first, std::string::const_iterator last, ip_address& v);
bool is_null() const
Test if null (all 0's).
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...
#define TECOMMONEXPORT
You can use this macro in order to export/import classes and functions from this module.
static const char SEPARATOR_CHAR
separator ('.')