Ignore:
Timestamp:
2008-05-13T10:58:58+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Untangling colservr/recpt) Deleted setReceptionistServers() from colservr/collectset.cpp, since this required passing in the receptionist, and the colservr should be independent of the receptionist. Changed the one place this function was called (recpt/librarymain.cpp) to do the same functionality.

Location:
gsdl/trunk/src/colservr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/colservr/collectset.cpp

    r15002 r15401  
    455455  }
    456456}
    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  
    1010#include "collectserver.h"
    1111#include "cnfgable.h"
    12 #include "receptionist.h"
    1312#include "mgsearch.h"
    1413#include "mgppsearch.h"
     
    6160  collectservermapclass servers();
    6261
    63   // configure a receptionist with the list of servers
    64   void setReceptionistServers(receptionist &recpt, text_t &gsdlhome);
    65 
    6662  // return an individual collection server
    6763  collectserver *getCollectServer(const text_t &collection)
Note: See TracChangeset for help on using the changeset viewer.