Changeset 197 for trunk/gsdl/src/recpt/comtypes.cpp
- Timestamp:
- 1999-03-10T10:00:48+13:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/comtypes.cpp
r187 r197 12 12 /* 13 13 $Log$ 14 Revision 1.3 1999/03/09 21:00:47 rjmcnab 15 Reorganised the statusaction, added more functions to comtypes. 16 14 17 Revision 1.2 1999/03/04 21:19:15 rjmcnab 15 18 … … 50 53 } 51 54 55 void 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 52 79 void FilterDescript_t::clear () { 53 80 filterName.clear(); … … 77 104 } 78 105 106 79 107 void ResultDocInfo_t::clear () { 80 108 OID.clear (); … … 83 111 docFreq.erase(docFreq.begin(), docFreq.end()); 84 112 } 113 114 ResultDocInfo_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 85 122 86 123 void FilterResponse_t::clear () {
Note:
See TracChangeset
for help on using the changeset viewer.