#include <QuonHelper.h>Go to the source code of this file.
Functions | |
| std::ostream & | operator<< (std::ostream &Stream, const QuonAOI &aoi) |
| std::ostream & | operator<< (std::ostream &Stream, const QuonSite &s) |
Definition in file QuonHelper.cc.
| std::ostream& operator<< | ( | std::ostream & | Stream, | |
| const QuonAOI & | aoi | |||
| ) |
Definition at line 58 of file QuonHelper.cc.
| std::ostream& operator<< | ( | std::ostream & | Stream, | |
| const QuonSite & | s | |||
| ) |
Definition at line 73 of file QuonHelper.cc.
{
Stream << s.address.getIp() << ":" << s.address.getPort() << " Type: ";
switch(s.type) {
case QUNDEFINED:
if( s.softNeighbor) {
Stream << "\"Softstate Neighbor\"";
} else {
Stream << "\"Undefined\"";
}
break;
case QTHIS:
Stream << "\"Self\"";
break;
case QNEIGHBOR:
Stream << "\"Direct Neighbor\"";
break;
case QBINDING:
Stream << "\"Binding Neighbor\"";
break;
break;
}
Stream << " Position: " << s.position;
return Stream;
}
1.7.1