Changeset 472 for trunk/gsdl/src/recpt


Ignore:
Timestamp:
1999-08-25T16:50:00+12:00 (25 years ago)
Author:
sjboddie
Message:

changed FilterRequest_t::docSet into an array

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

Legend:

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

    r445 r472  
    1212/*
    1313   $Log$
     14   Revision 1.14  1999/08/25 04:45:25  sjboddie
     15   changed FilterRequest_t::docSet into an array
     16
    1417   Revision 1.13  1999/08/10 22:44:06  sjboddie
    1518   altered the get_contents function so it's now passed metadata
     
    115118bool get_info (const text_t &OID, const text_t &collection,
    116119           const text_tarray &metadata, bool getParents,
    117            recptproto *collectproto,FilterResponse_t &response,
     120           recptproto *collectproto, FilterResponse_t &response,
    118121           ostream &logout) {
    119122
     
    127130  request.getParents = getParents;
    128131  request.fields = metadata;
    129   request.docSet.insert (OID);
     132  request.docSet.push_back (OID);
    130133 
    131134  collectproto->filter (collection, request, response, err, logout);
     
    143146bool get_info (const text_tarray &OIDs, const text_t &collection,
    144147           const text_tarray &metadata, bool getParents,
    145            recptproto *collectproto,FilterResponse_t &response,
     148           recptproto *collectproto, FilterResponse_t &response,
    146149           ostream &logout) {
    147150
     
    157160  request.fields = metadata;
    158161
    159   text_tarray::const_iterator thisOID = OIDs.begin();
    160   text_tarray::const_iterator endOID = OIDs.end();
    161   while (thisOID != endOID) {
    162     request.docSet.insert (*thisOID);
    163     thisOID ++;
    164   }
     162  request.docSet = OIDs;
    165163 
    166164  collectproto->filter (collection, request, response, err, logout);
  • trunk/gsdl/src/recpt/OIDtools.h

    r445 r472  
    3737bool get_info (const text_tarray &OIDs, const text_t &collection,
    3838           const text_tarray &metadata, bool getParents,
    39            recptproto *collectproto,FilterResponse_t &response,
     39           recptproto *collectproto, FilterResponse_t &response,
    4040           ostream &logout);
    4141
  • trunk/gsdl/src/recpt/comtypes.h

    r459 r472  
    209209  text_t filterName;
    210210  OptionValue_tarray filterOptions;
    211   text_tset docSet;        // empty if not used
     211  text_tarray docSet;        // empty if not used
    212212  int filterResultOptions; // use the FR* defines above
    213213
Note: See TracChangeset for help on using the changeset viewer.