Changeset 9608
- Timestamp:
- 2005-04-08T14:22:41+12:00 (19 years ago)
- Location:
- trunk/gsdl/src/oaiservr
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/oaiservr/abstractlistaction.cpp
r8303 r9608 30 30 } 31 31 } 32 numArgs ++; // Increase valid args count32 ++numArgs; // Increase valid args count 33 33 } 34 34 … … 45 45 } 46 46 } 47 numArgs ++; // Increase valid args count47 ++numArgs; // Increase valid args count 48 48 } 49 49 … … 73 73 } 74 74 } 75 numArgs ++;75 ++numArgs; 76 76 } 77 77 … … 83 83 return false; 84 84 } 85 numArgs ++;85 ++numArgs; 86 86 } 87 87 … … 180 180 text_t until = params["until"]; 181 181 182 for (long i = startDoc; i < cinfo.numDocs; i++) {182 for (long i = startDoc; i < cinfo.numDocs; ++i) { 183 183 if (errorCount > 3) { // If num errors reaches the cut-off value, bail. 184 184 cerr << "Error: too many records(" << errorCount << ") in the " << gsdlCollect … … 193 193 194 194 if (gsdl_id == "") { // If the string is empty, then the document didn't have an oai_id, so 195 errorCount ++; // increase error count195 ++errorCount; // increase error count 196 196 continue; 197 197 } … … 208 208 // GRB: the above comment is no longer true; proper checks are made 209 209 this->prevDocSeen = true; 210 this->outputDocs ++;210 ++this->outputDocs; 211 211 } 212 212 } … … 236 236 protocol->get_collection_list(collections, err, output); 237 237 238 for(int current_col = 0; current_col < collections.size(); current_col++){238 for(int current_col = 0; current_col < collections.size(); ++current_col){ 239 239 gsdlCollect = collections[current_col]; 240 240 this->output_content_for_col(output, protocol, gsdlCollect, cinfo, err, params); … … 342 342 343 343 // seek forward; TODO: improve performance of this 344 for (int c = 0; c < response.numDocs; c ++) {344 for (int c = 0; c < response.numDocs; ++c) { 345 345 if (response.docInfo[c].OID == nextNode) { 346 346 startPos = c; … … 351 351 } 352 352 353 for (int c = startPos; c < response.numDocs; c ++) {353 for (int c = startPos; c < response.numDocs; ++c) { 354 354 text_t child = response.docInfo[c].OID; 355 355 … … 370 370 if (this->output_document(output, protocol, collection, child, metadataPrefix)) { 371 371 this->prevDocSeen = true; 372 this->outputDocs ++;372 ++this->outputDocs; 373 373 } 374 374 } … … 396 396 get_children(classifier, collection, metadata, false, protocol, response, logout); 397 397 398 for (int c = 0; c < response.numDocs; c ++) {398 for (int c = 0; c < response.numDocs; ++c) { 399 399 text_t child = response.docInfo[c].OID; 400 400 … … 409 409 if (childHead == "HASH") { 410 410 this->output_document(output, protocol, collection, child, metadataPrefix); 411 this->outputDocs ++;411 ++this->outputDocs; 412 412 prevDocSeen = true; 413 413 } -
trunk/gsdl/src/oaiservr/identityaction.cpp
r8182 r9608 48 48 output << " <" << here->first << ">" << here->second; 49 49 output << " </" << here->first << ">" << endl; 50 here ++;50 ++here; 51 51 } 52 52 -
trunk/gsdl/src/oaiservr/listrecsaction.cpp
r8182 r9608 21 21 } 22 22 else { 23 numArgs++; // If it's there, increase arg count23 ++numArgs; // If it's there, increase arg count 24 24 } 25 25 -
trunk/gsdl/src/oaiservr/listsetsaction.cpp
r8303 r9608 26 26 text_t collect = *here; 27 27 this->output_content(output, protocol, params); 28 here ++;28 ++here; 29 29 } 30 30 return true; … … 50 50 } 51 51 52 for(int current_col = 0; current_col < collections.size(); current_col++) {52 for(int current_col = 0; current_col < collections.size(); ++current_col) { 53 53 // output the collection as a set, first, then its children 54 54 text_t gsdlCollect = collections[current_col]; … … 63 63 64 64 // and send them to the "recurse_content" list 65 for (int c = 0; c < response.numDocs; c ++) {65 for (int c = 0; c < response.numDocs; ++c) { 66 66 this->recurse_content(output, protocol, gsdlCollect, response.docInfo[c].OID, gsdlCollect); 67 67 } … … 116 116 } 117 117 118 here ++;118 ++here; 119 119 } 120 120 … … 140 140 // get the children of this classifier and iterate them 141 141 get_children(classifier, collection, "", metadata, false, protocol, response, logout); 142 for (int c = 0; c < response.numDocs; c ++) {142 for (int c = 0; c < response.numDocs; ++c) { 143 143 text_t child = response.docInfo[c].OID; 144 144 -
trunk/gsdl/src/oaiservr/metaformat.cpp
r8303 r9608 26 26 } 27 27 28 for (int item = 0; item < values.size(); item ++) {28 for (int item = 0; item < values.size(); ++item) { 29 29 if (this->oaiConfigure->getOAIVersion() >= 200) { // TODO: GRB: This code may need to be subclassed by dc for 200 and later... 30 30 output << " <" << this->formatPrefix() << ":" << label << ">" << values[item] << "</" << this->formatPrefix() << ":" << label << ">\n"; … … 90 90 } 91 91 92 here ++;92 ++here; 93 93 } 94 94 -
trunk/gsdl/src/oaiservr/metaformatsaction.cpp
r8182 r9608 10 10 // is given 11 11 if (params["identifier"] != "") { 12 numArgs++;12 ++numArgs; 13 13 } 14 14 … … 84 84 output << " </metadataFormat>\n"; 85 85 } 86 here ++;86 ++here; 87 87 } 88 88 } … … 99 99 while (here != end) { 100 100 here->second.set_configuration((oaiconfig *) configuration); 101 here ++;101 ++here; 102 102 } 103 103 } -
trunk/gsdl/src/oaiservr/metaformatters.cpp
r8182 r9608 18 18 { 19 19 delete here->second; 20 here ++;20 ++here; 21 21 } 22 22 } -
trunk/gsdl/src/oaiservr/oaiaction.cpp
r8316 r9608 234 234 requestURL += "="; 235 235 requestURL += html_safe(here->second); // parse the argument to ensure it is URL-encoding compliant 236 here++;236 ++here; 237 237 238 238 while(here != end){ 239 239 requestURL +="&"; // Stick in the ampersand in URL encoding 240 240 requestURL += (here->first + "=" + html_safe(here->second)); 241 here++;241 ++here; 242 242 } 243 243 requestURL += "</requestURL>\n"; … … 255 255 } 256 256 requestURL = " <request " + here->first + "=\"" + here->second + "\""; 257 here++;257 ++here; 258 258 while(here != end){ 259 259 requestURL += (" " + here->first + "=\"" + here->second + "\""); 260 here++;260 ++here; 261 261 } 262 262 requestURL += ">\n " + httpdomain + "/oaimain</request>\n"; … … 399 399 oaiclassifier::toOAI(collection, oaiSet); 400 400 output << " <setSpec>" << oaiSet << "</setSpec>" << endl; 401 member ++;401 ++member; 402 402 } 403 403 } … … 428 428 } 429 429 } 430 current++;430 ++current; 431 431 } 432 432 } -
trunk/gsdl/src/oaiservr/oaiargs.cpp
r8228 r9608 37 37 38 38 // move to the next character 39 here ++;39 ++here; 40 40 41 41 // and refill the buffer as necessary … … 56 56 else { 57 57 label.setcarr((char *) start, (int) equals - (int) start); 58 equals ++;58 ++equals; 59 59 value.setcarr((char *) equals, (int) here - (int) equals); 60 60 } … … 77 77 // inifinite loops above 78 78 if (*here == '&') { 79 here ++;79 ++here; 80 80 } 81 81 } … … 89 89 while (*currentPtr != end) { 90 90 *fill = **currentPtr; 91 *currentPtr ++;91 ++*currentPtr; 92 92 } 93 93 -
trunk/gsdl/src/oaiservr/oaiconfig.cpp
r8311 r9608 50 50 while (here != end) { 51 51 this->configureCollection(gsdlhome, *here); 52 here ++;52 ++here; 53 53 } 54 54 } … … 64 64 while (here != end) { 65 65 delete here->second; 66 here ++;66 ++here; 67 67 } 68 68 } … … 157 157 exit(1); 158 158 } 159 for (int c = 0; c < cfgline.size(); c ++) {159 for (int c = 0; c < cfgline.size(); ++c) { 160 160 this->collectList.push_back(cfgline[c]); 161 161 } … … 198 198 } 199 199 else { 200 line ++;200 ++line; 201 201 } 202 202 } … … 222 222 } 223 223 else { 224 line ++;224 ++line; 225 225 } 226 226 } -
trunk/gsdl/src/oaiservr/oaidispatcher.cpp
r8182 r9608 12 12 while (here != end) { 13 13 delete here->second; 14 here ++;14 ++here; 15 15 } 16 16 } -
trunk/gsdl/src/oaiservr/oaimain.cpp
r9408 r9608 74 74 break; 75 75 argstr.push_back (c); 76 content_length--;76 --content_length; 77 77 } while (content_length > 0); 78 78 } -
trunk/gsdl/src/oaiservr/oaitools.cpp
r8337 r9608 7 7 void oaiclassifier::swapColonsAndPeriods(text_t &classifier) 8 8 { 9 for (int i = 1; i <= classifier.size(); i ++) {9 for (int i = 1; i <= classifier.size(); ++i) { 10 10 if (classifier[i] == '.') { 11 11 classifier[i] = ':'; -
trunk/gsdl/src/oaiservr/recordaction.cpp
r8306 r9608 23 23 while (here != end) { 24 24 here->second.clear(); 25 here ++;25 ++here; 26 26 } 27 27 }
Note:
See TracChangeset
for help on using the changeset viewer.