#include "src/associations.hpp" #include // Some debug functions for dumping out the main data structures in objmgr void dump_AssociationOwnersType(AssociationOwnersType& assocOwners) { using namespace std; cout << "##### AssociationOwnersType #####" << endl; for (auto i : assocOwners) { cout << "------------------------------------" << endl; cout << setw(15) << left << "OBJ PATH:" << i.first << endl; for (auto j : i.second) { cout << setw(16) << left << "DBUS SERVICE:" << j.first << endl; for (auto k : j.second) { cout << setw(17) << left << "ASSOC PATH:" << k.first << endl; for (auto l : k.second) { cout << setw(18) << left << "ENDPOINT:" << l << endl; } } } cout << "------------------------------------" << endl; } } void dump_AssociationInterfaces(AssociationInterfaces& assocInterfaces) { using namespace std; cout << "##### AssociationInterfaces #####" << endl; for (auto i : assocInterfaces) { cout << "------------------------------------" << endl; cout << setw(15) << left << "OBJ PATH:" << i.first << endl; auto intfEndpoints = std::get(i.second); for (auto k : intfEndpoints) { cout << setw(16) << left << "ENDPOINTS:" << k << endl; } cout << "------------------------------------" << endl; } } void dump_InterfaceMapType(interface_map_type& intfMap) { using namespace std; cout << "##### interface_map_type #####" << endl; for (auto i : intfMap) { cout << "------------------------------------" << endl; cout << setw(15) << left << "OBJ PATH:" << i.first << endl; for (auto j : i.second) { cout << setw(16) << left << "DBUS SERVICE:" << j.first << endl; for (auto k : j.second) { cout << setw(18) << left << "INTERFACE:" << k << endl; } } } cout << "------------------------------------" << endl; }