ObjectIterator Manager::objects(void) { ObjectIterator it; if (nm_mgr_nodes(&it._it, *this) != 0) { throw ::std::runtime_error("get named objects of Manager fail!"); } it._next = it.next_i(); return it; }
ObjectIterator Object::groups(void) { ObjectIterator it; if (nm_node_groups(&it._it, *this) != 0) { ::std::ostringstream os; os << "get groups of named object " << name() << " fail!"; throw ::std::runtime_error(os.str()); } it._next = it.next_i(); return it; }