7 #ifndef _QI_MESSAGING_URL_HPP_
8 #define _QI_MESSAGING_URL_HPP_
46 Url(
const std::string &url);
54 Url(
const std::string &url,
unsigned short defaultPort);
62 Url(
const std::string &url,
const std::string &defaultProtocol);
72 Url(
const std::string &url,
const std::string &defaultProtocol,
unsigned short defaultPort);
88 Url& operator= (
const Url& rhs);
104 const std::string& str()
const;
110 const std::string& protocol()
const;
113 bool hasProtocol()
const;
116 void setProtocol(
const std::string& protocol);
122 const std::string& host()
const;
125 bool hasHost()
const;
128 void setHost(
const std::string& host);
133 unsigned short port()
const;
136 bool hasPort()
const;
139 void setPort(
unsigned short port);
151 {
return !(lhs == rhs); }
165 #endif // _QIMESSAGING_URL_HPP_
std::ostream & operator<<(std::ostream &o, FutureState x)
dll import/export and compiler message
bool operator==(const Signature &lhs, const Signature &rhs)
std::vector< Url > UrlVector
bool operator<(const AnyReference &a, const AnyReference &b)
bool operator!=(const Signature &lhs, const Signature &rhs)
Url specifyUrl(const Url &specification, const Url &baseUrl)