Changeset 648


Ignore:
Timestamp:
1999-10-10T20:49:35+13:00 (25 years ago)
Author:
sjboddie
Message:
  • metadata now returns map rather than array
  • redesigned browsing support (although it's not finished

so won't currently work ;-)

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

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

    r533 r648  
    2828/*
    2929   $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
    3035   Revision 1.18  1999/09/07 04:56:54  sjboddie
    3136   added GPL notice
     
    229234  isRef = false;
    230235  values.erase(values.begin(), values.end());
    231   name.clear();
     236  parent = NULL;
    232237}
    233238
  • trunk/gsdl/src/recpt/comtypes.h

    r533 r648  
    197197// -- any information relating to the terms is in reference to the
    198198// -- index specified for that term.
    199 // -- Metadata is presented in the same order that it is requested.
    200199//
    201200// FilterRequest ::= SEQUENCE {
     
    212211//   refParams           [5] IMPLICIT GeneralString, -- used to decide whether to return a
    213212//                                                   -- reference to the data or the actual data
    214 //   fields              [6] IMPLICIT StringSequence
     213//   fields              [6] IMPLICIT StringSet
    215214//   getParents          [7] IMPLICIT BOOLEAN        -- gets metadata of all parents too
    216215// }
     
    234233  text_t requestParams; // empty if not used
    235234  text_t refParams;     // empty if not used
    236   text_tarray fields;   // empty if not used
     235  text_tset fields;   // empty if not used
    237236  bool getParents;      // defaults to false
    238237};
     
    265264  void clear ();
    266265  MetadataInfo_t () {clear();}
    267 
     266 
    268267  text_t params;
    269268  bool isRef;
    270269  text_tarray values;
    271   text_t name;
    272 };
    273 
    274 typedef vector<MetadataInfo_t> MetadataInfo_tarray;
    275 
     270  MetadataInfo_t *parent;
     271};
     272
     273typedef map<text_t, MetadataInfo_t, lttext_t> MetadataInfo_tmap;
    276274
    277275// ResultDocInfo ::= SEQUENCE {
     
    279277//   ranking  [1] IMPLICIT INTEGER,             -- 0 if not requested, range 0-10000
    280278//   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??)
    282280// }
    283281struct ResultDocInfo_t {
     
    292290
    293291  vector<int> docFreq; // empty if not requested
    294   MetadataInfo_tarray metadata; // empty if not requested
     292  MetadataInfo_tmap metadata; // empty if not requested
    295293
    296294  ResultDocInfo_t &operator=(const ResultDocInfo_t &x);
Note: See TracChangeset for help on using the changeset viewer.