Changeset 187 for trunk/gsdl/src/recpt
- Timestamp:
- 1999-03-05T10:19:15+13:00 (25 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/comtypes.cpp
r166 r187 12 12 /* 13 13 $Log$ 14 Revision 1.2 1999/03/04 21:19:15 rjmcnab 15 16 Added clear() functions to all the data types. 17 14 18 Revision 1.1 1999/02/21 22:35:25 rjmcnab 15 19 … … 22 26 23 27 24 ColInfoResponse_t::ColInfoResponse_t () { 28 void ShortColInfo_t::clear() { 29 name.clear(); 30 host.clear(); 31 port = 0; 32 } 33 34 void ColInfoResponse_t::clear () { 35 shortInfo.clear(); 25 36 isPublic=false; 26 37 isBeta=false; … … 31 42 } 32 43 44 void FilterOption_t::clear () { 45 name.clear(); 46 type = booleant; 47 repeatable = onePerQuery; 48 defaultValue.clear(); 49 validValues.erase(validValues.begin(), validValues.end()); 50 } 51 52 void FilterDescript_t::clear () { 53 filterName.clear(); 54 filterOptions.erase(filterOptions.begin(), filterOptions.end()); 55 } 56 57 void InfoFilterOptionsResponse_t::clear () { 58 filterOptions.erase(filterOptions.begin(), filterOptions.end()); 59 } 60 61 void OptionValue_t::clear () { 62 name.clear(); 63 value.clear(); 64 } 65 66 void FilterRequest_t::clear () { 67 filterName.clear(); 68 filterOptions.erase(filterOptions.begin(), filterOptions.end()); 69 docSet.erase(docSet.begin(), docSet.end()); 70 filterResultOptions = 0; 71 } 72 73 void TermInfo_t::clear () { 74 term.clear(); 75 freq = 0; 76 matchTerms.erase (matchTerms.begin(), matchTerms.end()); 77 } 78 79 void ResultDocInfo_t::clear () { 80 OID.clear (); 81 subCol.erase (subCol.begin(), subCol.end()); 82 ranking = 0.0; 83 docFreq.erase(docFreq.begin(), docFreq.end()); 84 } 85 86 void FilterResponse_t::clear () { 87 docsFound = 0; 88 isApprox = false; 89 termInfo.erase (termInfo.begin(), termInfo.end()); 90 docInfo.erase (docInfo.begin(), docInfo.end()); 91 } 92 93 void MetadataInfoResponse_t::clear () { 94 supportedFields.erase (supportedFields.begin(), supportedFields.end()); 95 supportedLanguages.erase (supportedLanguages.begin(), supportedLanguages.end()); 96 } 97 98 void MetadataRequest_t::clear () { 99 OIDs.erase (OIDs.begin(), OIDs.end()); 100 fields.erase (fields.begin(), fields.end()); 101 languages.erase (languages.begin(), languages.end()); 102 } 103 104 void MetadataResponse_t::clear () { 105 metadata.erase (metadata.begin(), metadata.end()); 106 }; 107 -
trunk/gsdl/src/recpt/comtypes.h
r184 r187 41 41 // } 42 42 struct ShortColInfo_t { 43 ShortColInfo_t () {port=0;} 43 void clear (); 44 ShortColInfo_t () {clear();} 44 45 45 46 text_t name; … … 60 61 // } 61 62 struct ColInfoResponse_t { 62 ColInfoResponse_t (); 63 void clear (); 64 ColInfoResponse_t () {clear();} 63 65 64 66 ShortColInfo_t shortInfo; … … 87 89 // } 88 90 struct FilterOption_t { 89 FilterOption_t () {type=booleant; repeatable=onePerQuery;} 91 void clear (); 92 FilterOption_t () {clear();} 90 93 91 94 text_t name; … … 126 129 // } 127 130 struct FilterDescript_t { 131 void clear (); 132 128 133 text_t filterName; 129 134 FilterOption_tset filterOptions; … … 142 147 // } 143 148 struct InfoFilterOptionsResponse_t { 149 void clear (); 150 144 151 FilterDescript_tset filterOptions; 145 152 }; … … 152 159 // } 153 160 struct OptionValue_t { 161 void clear (); 162 154 163 text_t name; 155 164 text_t value; … … 179 188 180 189 struct FilterRequest_t { 181 FilterRequest_t () {filterResultOptions=0;} 190 void clear (); 191 FilterRequest_t () {clear();} 182 192 183 193 text_t filterName; … … 194 204 // } 195 205 struct TermInfo_t { 196 TermInfo_t () {freq=0;} 206 void clear (); 207 TermInfo_t () {clear();} 197 208 198 209 text_t term; … … 210 221 // } 211 222 struct ResultDocInfo_t { 212 ResultDocInfo_t () {ranking=0.0;} 223 void clear (); 224 ResultDocInfo_t () {clear();} 213 225 214 226 text_t OID; … … 231 243 // } 232 244 struct FilterResponse_t { 233 FilterResponse_t () {docsFound=0; isApprox=false;} 245 void clear (); 246 FilterResponse_t () {clear();} 234 247 235 248 int docsFound; … … 246 259 // } 247 260 struct MetadataInfoResponse_t { 261 void clear (); 262 248 263 text_tset supportedFields; 249 264 text_tset supportedLanguages; … … 256 271 // } 257 272 struct MetadataRequest_t { 273 void clear (); 274 258 275 text_tarray OIDs; 259 276 text_tarray fields; … … 268 285 // } 269 286 struct MetadataResponse_t { 287 void clear (); 288 270 289 text_tarray metadata; 271 290 };
Note:
See TracChangeset
for help on using the changeset viewer.