Changeset 648
- Timestamp:
- 1999-10-10T20:49:35+13:00 (25 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/comtypes.cpp
r533 r648 28 28 /* 29 29 $Log$ 30 Revision 1.19 1999/10/10 07:49:35 sjboddie 31 - metadata now returns map rather than array 32 - redesigned browsing support (although it's not finished 33 so won't currently work ;-) 34 30 35 Revision 1.18 1999/09/07 04:56:54 sjboddie 31 36 added GPL notice … … 229 234 isRef = false; 230 235 values.erase(values.begin(), values.end()); 231 name.clear();236 parent = NULL; 232 237 } 233 238 -
trunk/gsdl/src/recpt/comtypes.h
r533 r648 197 197 // -- any information relating to the terms is in reference to the 198 198 // -- index specified for that term. 199 // -- Metadata is presented in the same order that it is requested.200 199 // 201 200 // FilterRequest ::= SEQUENCE { … … 212 211 // refParams [5] IMPLICIT GeneralString, -- used to decide whether to return a 213 212 // -- reference to the data or the actual data 214 // fields [6] IMPLICIT StringSe quence213 // fields [6] IMPLICIT StringSet 215 214 // getParents [7] IMPLICIT BOOLEAN -- gets metadata of all parents too 216 215 // } … … 234 233 text_t requestParams; // empty if not used 235 234 text_t refParams; // empty if not used 236 text_t arrayfields; // empty if not used235 text_tset fields; // empty if not used 237 236 bool getParents; // defaults to false 238 237 }; … … 265 264 void clear (); 266 265 MetadataInfo_t () {clear();} 267 266 268 267 text_t params; 269 268 bool isRef; 270 269 text_tarray values; 271 text_t name; 272 }; 273 274 typedef vector<MetadataInfo_t> MetadataInfo_tarray; 275 270 MetadataInfo_t *parent; 271 }; 272 273 typedef map<text_t, MetadataInfo_t, lttext_t> MetadataInfo_tmap; 276 274 277 275 // ResultDocInfo ::= SEQUENCE { … … 279 277 // ranking [1] IMPLICIT INTEGER, -- 0 if not requested, range 0-10000 280 278 // docFreq [2] IMPLICIT SEQUENCE OF INTEGER, -- empty if not requested 281 // metadata [3] IMPLICIT SEQUENCE OF MetadataInfo 279 // metadata [3] IMPLICIT SEQUENCE OF MetadataInfo -- no longer a SEQUENCE (SET maybe??) 282 280 // } 283 281 struct ResultDocInfo_t { … … 292 290 293 291 vector<int> docFreq; // empty if not requested 294 MetadataInfo_t arraymetadata; // empty if not requested292 MetadataInfo_tmap metadata; // empty if not requested 295 293 296 294 ResultDocInfo_t &operator=(const ResultDocInfo_t &x);
Note:
See TracChangeset
for help on using the changeset viewer.