Changeset 11732 for trunk/gsdl/src/oaiservr/oaiconfig.cpp
- Timestamp:
- 2006-04-28T11:26:25+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/oaiservr/oaiconfig.cpp
r9608 r11732 34 34 35 35 oaiconfig::oaiconfig() : configurable () { 36 this->resumptionSize = -1; // Default = do not use resumption tokens 36 37 } 37 38 … … 41 42 text_t mainconfig = filename_cat(gsdlhome, "etc", "oai.cfg"); 42 43 this->collection = ""; 44 this->resumptionSize = -1; 43 45 this->read_configfile(mainconfig); 44 46 45 47 // then if we've not got a specified collection in the gsdlcollect 46 48 // parameter, read in all the collection's individual configurations … … 66 68 ++here; 67 69 } 70 } 71 72 int oaiconfig::resumeAfter() 73 { return this->resumptionSize; 68 74 } 69 75 … … 186 192 this->oaiVersion = cfgline[0]; 187 193 } 194 else if (key == "resumeafter" && cfgline.size() >= 1) { 195 this->resumptionSize = cfgline[0].getint(); 196 } 188 197 // get and note a maintainer item to support the Identify Verb of OAI 189 198 else if (key == "maintainer" && cfgline.size() >= 1) {
Note:
See TracChangeset
for help on using the changeset viewer.