Ignore:
Timestamp:
1999-07-30T14:24:45+12:00 (25 years ago)
Author:
sjboddie
Message:

added collectinfo argument to some functions

File:
1 edited

Legend:

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

    r403 r421  
    1212/*
    1313   $Log$
     14   Revision 1.17  1999/07/30 02:24:42  sjboddie
     15   added collectinfo argument to some functions
     16
    1417   Revision 1.16  1999/07/19 00:16:58  sjboddie
    1518   no longer display documents that don't match all phrases in query string
     
    297300}
    298301
    299 void queryaction::define_internal_macros (displayclass &disp, cgiargsclass &args,
    300                       recptproto */*collectproto*/, ostream &/*logout*/) {
     302void queryaction::define_internal_macros (const ColInfoResponse_t &/*collectinfo*/, displayclass &disp,
     303                      cgiargsclass &args, recptproto */*collectproto*/,
     304                      ostream &/*logout*/) {
    301305
    302306  // define_internal_macros sets the following macros:
     
    374378}
    375379
    376 void queryaction::define_external_macros (displayclass &disp, cgiargsclass &args,
    377                       recptproto *collectproto, ostream &logout) {
     380void queryaction::define_external_macros (const ColInfoResponse_t &/*collectinfo*/, displayclass &disp,
     381                      cgiargsclass &args, recptproto *collectproto,
     382                      ostream &logout) {
    378383
    379384  // define_external_macros sets the following macros:
     
    421426}
    422427
    423 bool queryaction::do_action (cgiargsclass &args, recptproto *collectproto,
    424                  displayclass &disp, outconvertclass &outconvert,
    425                  ostream &textout, ostream &logout) {
    426 
    427   // if we have no format string see if the collection server has one
     428bool queryaction::do_action (cgiargsclass &args, const ColInfoResponse_t &collectinfo,
     429                 recptproto *collectproto, displayclass &disp,
     430                 outconvertclass &outconvert, ostream &textout,
     431                 ostream &logout) {
     432
    428433  if (formatstring.empty()) {
    429     ColInfoResponse_t collectinfo;
    430     comerror_t err;
    431     collectproto->get_collectinfo (args["c"], collectinfo, err, logout);
    432     if (err == noError) {
    433       text_tmap::const_iterator result = collectinfo.format.find("result");
    434       if (result != collectinfo.format.end())
    435     formatstring = (*result).second;
    436     }
    437   }
     434    text_tmap::const_iterator result = collectinfo.format.find("result");
     435    if (result != collectinfo.format.end())
     436      formatstring = (*result).second;
     437  }
     438
    438439  // if we still don't have a format string use the default
    439440  if (formatstring.empty())
Note: See TracChangeset for help on using the changeset viewer.