Changeset 15401
- Timestamp:
- 2008-05-13T10:58:58+12:00 (16 years ago)
- Location:
- gsdl/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/colservr/collectset.cpp
r15002 r15401 455 455 } 456 456 } 457 458 void collectset::setReceptionistServers(receptionist &recpt, text_t &gsdlhome)459 {460 collectservermapclass::iterator here = cservers.begin();461 collectservermapclass::iterator end = cservers.end();462 while (here != end) {463 assert ((*here).second.c != NULL);464 465 text_tarray colinfo;466 colinfo.push_back((*here).second.c->get_collection_name());467 colinfo.push_back(gsdlhome);468 colinfo.push_back(gsdlhome);469 recpt.configure("collectinfo", colinfo);470 471 ++here;472 }473 } -
gsdl/trunk/src/colservr/collectset.h
r15002 r15401 10 10 #include "collectserver.h" 11 11 #include "cnfgable.h" 12 #include "receptionist.h"13 12 #include "mgsearch.h" 14 13 #include "mgppsearch.h" … … 61 60 collectservermapclass servers(); 62 61 63 // configure a receptionist with the list of servers64 void setReceptionistServers(receptionist &recpt, text_t &gsdlhome);65 66 62 // return an individual collection server 67 63 collectserver *getCollectServer(const text_t &collection) -
gsdl/trunk/src/recpt/librarymain.cpp
r14269 r15401 119 119 cservers = new collectset(gsdlhome); 120 120 121 // configure the receptionist server list 122 text_tarray collection_list; 123 cservers->getCollectionList(collection_list); 124 text_tarray::iterator collection_iterator = collection_list.begin(); 125 while (collection_iterator != collection_list.end()) 126 { 127 text_tarray colinfo; 128 colinfo.push_back(*collection_iterator); 129 colinfo.push_back(gsdlhome); 130 colinfo.push_back(gsdlhome); 131 recpt.configure("collectinfo", colinfo); 132 collection_iterator++; 133 } 134 121 135 // set up the null protocol 122 136 nproto.set_collectset(cservers); 123 124 // configure the receptionist server list125 cservers->setReceptionistServers(recpt, gsdlhome);126 137 127 138 // add the protocol to the receptionist
Note:
See TracChangeset
for help on using the changeset viewer.