#include #include #include #include using namespace std; #include #include template ostream& operator<<(ostream& o,const opkele::xrd::priority_map<_PDT>& pm) { for(typename opkele::xrd::priority_map<_PDT>::const_iterator i=pm.begin(); i!=pm.end();++i) o << ' ' << i->second << '[' << i->first << ']'; return o; } ostream& operator<<(ostream& o,const opkele::xrd::service_t s) { o << "{" << endl << " Type: "; copy(s.types.begin(),s.types.end(), ostream_iterator(o," ")); o << endl << " URI: " << s.uris << endl << " LocalID: " << s.local_ids << endl; o << "}"; } int main(int argc,char **argv) { try { if(argc<2) throw opkele::exception(OPKELE_CP_ "Please, give me something to resolve"); for(int a=1;a