Ignore:
Timestamp:
1999-03-10T10:00:48+13:00 (25 years ago)
Author:
rjmcnab
Message:

Reorganised the statusaction, added more functions to comtypes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/comtypes.cpp

    r187 r197  
    1212/*
    1313   $Log$
     14   Revision 1.3  1999/03/09 21:00:47  rjmcnab
     15   Reorganised the statusaction, added more functions to comtypes.
     16
    1417   Revision 1.2  1999/03/04 21:19:15  rjmcnab
    1518
     
    5053}
    5154
     55void FilterOption_t::check_defaultValue () {
     56  if (validValues.empty()) {
     57    // nothing to check against
     58    defaultValue.clear();
     59    return;
     60  }
     61
     62  text_tarray::iterator here = validValues.begin ();
     63  text_tarray::iterator end = validValues.end ();
     64  while (here != end) {
     65    if (*here == defaultValue) {
     66      // found the default value in the list of valid values
     67      // now there is nothing more to do
     68      return;
     69    }
     70
     71    here++;
     72  }
     73
     74  // did not find the defaultValue, set it to be the
     75  // first option in the list
     76  defaultValue = validValues[0];
     77}
     78
    5279void FilterDescript_t::clear () {
    5380  filterName.clear();
     
    77104}
    78105
     106
    79107void ResultDocInfo_t::clear () {
    80108  OID.clear ();
     
    83111  docFreq.erase(docFreq.begin(), docFreq.end());
    84112}
     113
     114ResultDocInfo_t &ResultDocInfo_t::operator=(const ResultDocInfo_t &x) {
     115  OID=x.OID;
     116  subCol=x.subCol;
     117  ranking=x.ranking;
     118  docFreq=x.docFreq;
     119  return *this;
     120}
     121
    85122
    86123void FilterResponse_t::clear () {
Note: See TracChangeset for help on using the changeset viewer.