#include <map>
#include <string>
#include "BaseApp.h"
#include "CommonMessages_m.h"
#include "BootstrapOracle.h"
#include "NodeHandle.h"
#include "ScribeGroup.h"
#include "ScribeMessage_m.h"
Classes | |
class | Scribe |
Functions | |
std::ostream & | operator<< (std::ostream &o, std::map< OverlayKey, ScribeGroup > m) |
std::ostream& operator<< | ( | std::ostream & | o, | |
std::map< OverlayKey, ScribeGroup > | m | |||
) |
00041 { 00042 for (std::map<OverlayKey, ScribeGroup>::iterator it = m.begin(); it != m.end(); ++it) { 00043 o << it->first << "\n"; 00044 o << " Parent: " << it->second.getParent() << "\n"; 00045 o << " Status: " << (it->second.getSubscription() ? "Subscriber\n" : "Forwarder\n"); 00046 o << " Children (" << it->second.numChildren() << "):\n"; 00047 std::set<NodeHandle>::iterator iit = it->second.getChildrenBegin(); 00048 for (int i = it->second.numChildren(); i > 0; --i) { 00049 o << " " << *iit << "\n"; 00050 ++iit; 00051 } 00052 } 00053 return o; 00054 }