--- a/src/Common/Address.cc
+++ b/src/Common/Address.cc
@@ -14,6 +14,8 @@
//
#include <Address.h>
+
+const Address Address::UNSPECIFIED_ADDRESS("");
Address::Address() : ipcAddress(APN()), difName(""), apname(APN())
{
@@ -79,6 +81,17 @@
&& apname == other.apname;
}
+bool Address::operator <(const Address& other) const
+{
+ if(!(ipcAddress == other.ipcAddress)){
+ return ipcAddress.getName() < other.ipcAddress.getName();
+ } else if(!(difName == other.difName)){
+ return difName.getName() < other.difName.getName();
+ } else {
+ return apname.getName() < other.apname.getName();
+ }
+}
+
std::string Address::info() const
{
std::ostringstream os;