Changeset 9608


Ignore:
Timestamp:
2005-04-08T14:22:41+12:00 (19 years ago)
Author:
kjdon
Message:

added in x++ -> ++x changes submitted by Emanuel Dejanu

Location:
trunk/gsdl/src/oaiservr
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/oaiservr/abstractlistaction.cpp

    r8303 r9608  
    3030      }
    3131    }
    32     numArgs ++; // Increase valid args count
     32    ++numArgs; // Increase valid args count
    3333  }
    3434
     
    4545      }
    4646    }
    47     numArgs ++; // Increase valid args count
     47    ++numArgs; // Increase valid args count
    4848  }
    4949
     
    7373      }
    7474    }
    75     numArgs ++;
     75    ++numArgs;
    7676  }
    7777
     
    8383      return false;
    8484    }
    85     numArgs ++;
     85    ++numArgs;
    8686  }
    8787 
     
    180180    text_t until        = params["until"];
    181181
    182     for (long i = startDoc; i < cinfo.numDocs; i++) {
     182    for (long i = startDoc; i < cinfo.numDocs; ++i) {
    183183      if (errorCount > 3) { // If num errors reaches the cut-off value, bail.
    184184    cerr << "Error: too many records(" << errorCount << ") in the " << gsdlCollect
     
    193193     
    194194      if (gsdl_id == "") { // If the string is empty, then the document didn't have an oai_id, so
    195     errorCount ++;     // increase error count
     195    ++errorCount;     // increase error count
    196196    continue;
    197197      }
     
    208208      // GRB: the above comment is no longer true; proper checks are made
    209209      this->prevDocSeen = true;
    210       this->outputDocs ++;
     210      ++this->outputDocs;
    211211    }
    212212      }
     
    236236  protocol->get_collection_list(collections, err, output);
    237237 
    238   for(int current_col = 0; current_col < collections.size(); current_col++){
     238  for(int current_col = 0; current_col < collections.size(); ++current_col){
    239239    gsdlCollect = collections[current_col];
    240240    this->output_content_for_col(output, protocol, gsdlCollect, cinfo, err, params);
     
    342342
    343343      // 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) {
    345345    if (response.docInfo[c].OID == nextNode) {
    346346      startPos = c;
     
    351351  }
    352352 
    353   for (int c = startPos; c < response.numDocs; c ++) {
     353  for (int c = startPos; c < response.numDocs; ++c) {
    354354    text_t child = response.docInfo[c].OID;
    355355   
     
    370370    if (this->output_document(output, protocol, collection, child, metadataPrefix)) {
    371371      this->prevDocSeen = true;
    372       this->outputDocs ++;
     372      ++this->outputDocs;
    373373    }
    374374      }
     
    396396  get_children(classifier, collection, metadata, false, protocol, response, logout);
    397397
    398   for (int c = 0; c < response.numDocs; c ++) {
     398  for (int c = 0; c < response.numDocs; ++c) {
    399399    text_t child = response.docInfo[c].OID;
    400400   
     
    409409    if (childHead == "HASH") {
    410410      this->output_document(output, protocol, collection, child, metadataPrefix);
    411       this->outputDocs ++;
     411      ++this->outputDocs;
    412412      prevDocSeen = true;
    413413    }
  • trunk/gsdl/src/oaiservr/identityaction.cpp

    r8182 r9608  
    4848    output << "  <" << here->first << ">" << here->second;
    4949    output << "  </" << here->first << ">" << endl;
    50     here ++;
     50    ++here;
    5151  }
    5252 
  • trunk/gsdl/src/oaiservr/listrecsaction.cpp

    r8182 r9608  
    2121  }
    2222  else {
    23     numArgs++; // If it's there, increase arg count
     23    ++numArgs; // If it's there, increase arg count
    2424  }
    2525 
  • trunk/gsdl/src/oaiservr/listsetsaction.cpp

    r8303 r9608  
    2626    text_t collect = *here;
    2727    this->output_content(output, protocol, params);
    28     here ++;
     28    ++here;
    2929  }
    3030  return true;
     
    5050  }
    5151
    52   for(int current_col = 0; current_col < collections.size(); current_col++) {
     52  for(int current_col = 0; current_col < collections.size(); ++current_col) {
    5353    // output the collection as a set, first, then its children
    5454    text_t gsdlCollect = collections[current_col];
     
    6363 
    6464    // 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) {
    6666      this->recurse_content(output, protocol, gsdlCollect, response.docInfo[c].OID, gsdlCollect);
    6767    }
     
    116116    }
    117117
    118     here ++;
     118    ++here;
    119119  }
    120120
     
    140140  // get the children of this classifier and iterate them
    141141  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) {
    143143    text_t child = response.docInfo[c].OID;
    144144
  • trunk/gsdl/src/oaiservr/metaformat.cpp

    r8303 r9608  
    2626  }
    2727
    28   for (int item = 0; item < values.size(); item ++) {
     28  for (int item = 0; item < values.size(); ++item) {
    2929    if (this->oaiConfigure->getOAIVersion() >= 200) { // TODO: GRB: This code may need to be subclassed by dc for 200 and later...
    3030      output << "        <" << this->formatPrefix() << ":" << label << ">" << values[item] << "</" << this->formatPrefix() << ":" << label << ">\n";
     
    9090    }
    9191
    92     here ++;
     92    ++here;
    9393  }
    9494
  • trunk/gsdl/src/oaiservr/metaformatsaction.cpp

    r8182 r9608  
    1010  // is given
    1111  if (params["identifier"] != "") {
    12     numArgs++;
     12    ++numArgs;
    1313  }
    1414
     
    8484    output << "  </metadataFormat>\n";
    8585      }
    86       here ++;
     86      ++here;
    8787    }
    8888  }
     
    9999  while (here != end) {   
    100100    here->second.set_configuration((oaiconfig *) configuration);
    101     here ++;
     101    ++here;
    102102  }
    103103}
  • trunk/gsdl/src/oaiservr/metaformatters.cpp

    r8182 r9608  
    1818    {
    1919      delete here->second;
    20       here ++;
     20      ++here;
    2121    }
    2222}
  • trunk/gsdl/src/oaiservr/oaiaction.cpp

    r8316 r9608  
    234234    requestURL += "=";
    235235    requestURL += html_safe(here->second); // parse the argument to ensure it is URL-encoding compliant
    236     here++;
     236    ++here;
    237237   
    238238    while(here != end){
    239239      requestURL +="&amp;"; // Stick in the ampersand in URL encoding
    240240      requestURL += (here->first + "=" + html_safe(here->second));
    241       here++;
     241      ++here;
    242242    }
    243243    requestURL += "</requestURL>\n";
     
    255255    }
    256256    requestURL = "  <request " + here->first + "=\"" + here->second + "\"";
    257     here++;
     257    ++here;
    258258    while(here != end){
    259259      requestURL += (" " + here->first + "=\"" + here->second + "\"");     
    260       here++;
     260      ++here;
    261261    }
    262262    requestURL += ">\n           " + httpdomain + "/oaimain</request>\n";
     
    399399    oaiclassifier::toOAI(collection, oaiSet);
    400400    output << "      <setSpec>" << oaiSet << "</setSpec>" << endl;
    401     member ++;
     401    ++member;
    402402      }
    403403    }
     
    428428      }
    429429    }
    430     current++;
     430    ++current;
    431431  } 
    432432}
  • trunk/gsdl/src/oaiservr/oaiargs.cpp

    r8228 r9608  
    3737
    3838      // move to the next character
    39       here ++;
     39      ++here;
    4040
    4141      // and refill the buffer as necessary
     
    5656    else {
    5757      label.setcarr((char *) start, (int) equals - (int) start);
    58       equals ++;
     58      ++equals;
    5959      value.setcarr((char *) equals, (int) here - (int) equals);
    6060    }
     
    7777    // inifinite loops above
    7878    if (*here == '&') {
    79       here ++;
     79      ++here;
    8080    }
    8181  }
     
    8989  while (*currentPtr != end) {
    9090    *fill = **currentPtr;
    91     *currentPtr ++;
     91    ++*currentPtr;
    9292  }
    9393
  • trunk/gsdl/src/oaiservr/oaiconfig.cpp

    r8311 r9608  
    5050    while (here != end) {       
    5151      this->configureCollection(gsdlhome, *here);
    52       here ++;
     52      ++here;
    5353    }
    5454  }
     
    6464  while (here != end) {
    6565    delete here->second;
    66     here ++;
     66    ++here;
    6767  }
    6868}
     
    157157      exit(1);
    158158    }
    159     for (int c = 0; c < cfgline.size(); c ++) {
     159    for (int c = 0; c < cfgline.size(); ++c) {
    160160      this->collectList.push_back(cfgline[c]);
    161161    }
     
    198198      }
    199199      else {
    200     line ++;
     200    ++line;
    201201      }
    202202    }
     
    222222      }
    223223      else {
    224     line ++;
     224    ++line;
    225225      }
    226226    }
  • trunk/gsdl/src/oaiservr/oaidispatcher.cpp

    r8182 r9608  
    1212  while (here != end) {
    1313    delete here->second;
    14     here ++;
     14    ++here;
    1515  }
    1616}
  • trunk/gsdl/src/oaiservr/oaimain.cpp

    r9408 r9608  
    7474      break;
    7575    argstr.push_back (c);
    76     content_length--;
     76    --content_length;
    7777      } while (content_length > 0);
    7878    }
  • trunk/gsdl/src/oaiservr/oaitools.cpp

    r8337 r9608  
    77void oaiclassifier::swapColonsAndPeriods(text_t &classifier)
    88{
    9   for (int i = 1; i <= classifier.size(); i ++) {
     9  for (int i = 1; i <= classifier.size(); ++i) {
    1010    if (classifier[i] == '.') {
    1111      classifier[i] = ':';
  • trunk/gsdl/src/oaiservr/recordaction.cpp

    r8306 r9608  
    2323  while (here != end) {
    2424    here->second.clear();
    25     here ++;
     25    ++here;
    2626  }
    2727}
Note: See TracChangeset for help on using the changeset viewer.