Changeset 421 for trunk/gsdl/src/recpt/queryaction.cpp
- Timestamp:
- 1999-07-30T14:24:45+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/queryaction.cpp
r403 r421 12 12 /* 13 13 $Log$ 14 Revision 1.17 1999/07/30 02:24:42 sjboddie 15 added collectinfo argument to some functions 16 14 17 Revision 1.16 1999/07/19 00:16:58 sjboddie 15 18 no longer display documents that don't match all phrases in query string … … 297 300 } 298 301 299 void queryaction::define_internal_macros (displayclass &disp, cgiargsclass &args, 300 recptproto */*collectproto*/, ostream &/*logout*/) { 302 void queryaction::define_internal_macros (const ColInfoResponse_t &/*collectinfo*/, displayclass &disp, 303 cgiargsclass &args, recptproto */*collectproto*/, 304 ostream &/*logout*/) { 301 305 302 306 // define_internal_macros sets the following macros: … … 374 378 } 375 379 376 void queryaction::define_external_macros (displayclass &disp, cgiargsclass &args, 377 recptproto *collectproto, ostream &logout) { 380 void queryaction::define_external_macros (const ColInfoResponse_t &/*collectinfo*/, displayclass &disp, 381 cgiargsclass &args, recptproto *collectproto, 382 ostream &logout) { 378 383 379 384 // define_external_macros sets the following macros: … … 421 426 } 422 427 423 bool queryaction::do_action (cgiargsclass &args, recptproto *collectproto,424 displayclass &disp, outconvertclass &outconvert,425 o stream &textout, ostream &logout) {426 427 // if we have no format string see if the collection server has one 428 bool queryaction::do_action (cgiargsclass &args, const ColInfoResponse_t &collectinfo, 429 recptproto *collectproto, displayclass &disp, 430 outconvertclass &outconvert, ostream &textout, 431 ostream &logout) { 432 428 433 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 438 439 // if we still don't have a format string use the default 439 440 if (formatstring.empty())
Note:
See TracChangeset
for help on using the changeset viewer.