ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/Outputer.cpp
(Generate patch)

Comparing trunk/Search/Outputer.cpp (file contents):
Revision 30 by douglas, 2003-01-07T12:57:18-08:00 vs.
Revision 205 by douglas, 2003-07-17T00:03:08-07:00

# Line 46 | Line 46
46   //
47   // Douglas Thrift
48   //
49 < // Outputer.cpp
49 > // $Id: Outputer.cpp,v 1.8 2003/07/17 07:03:08 douglas Exp $
50  
51   #include "Outputer.h"
52  
# Line 86 | Line 86 | void Outputer::output(Searcher& searcher
86  
87          if (debug)
88          {
89 <                cerr << "query = " << (this->query ? "true" : "false") << "\n"
90 <                        << "results = " << (results ? "true" : "false") << "\n"
89 >                cerr << "query = " << this->query << "\n"
90 >                        << "results = " << results << "\n"
91                          << "time = " << duration() << "\n";
92          }
93  
# Line 132 | Line 132 | void Outputer::header(const string& quer
132                  conditional(line, fin, "<?ifcommon?>", common.size() == 1);
133                  conditional(line, fin, "<?ifmanycommon?>", common.size() > 1);
134  
135 +                tag(line, "<?version?>", programName + ' ' + programVersion + ' ' +
136 +                        platform());
137                  tag(line, "<?query?>", query);
138                  tag(line, "<?range?>", range(page));
139                  tag(line, "<?total?>", total());
# Line 217 | Line 219 | void Outputer::footer(const string& quer
219                  conditional(line, fin, "<?ifcommon?>", common.size() == 1);
220                  conditional(line, fin, "<?ifmanycommon?>", common.size() > 1);
221  
222 + #ifndef _OpenSSL_
223 +                tag(line, "<?version?>", programName + ' ' + programVersion + ' ' +
224 +                        platform());
225 + #else
226 +                tag(line, "<?version?>", programName + ' ' + programVersion + ' ' +
227 +                        platform() + ' ' + openssl());
228 + #endif
229                  tag(line, "<?query?>", query);
230                  tag(line, "<?range?>", range(page));
231                  tag(line, "<?total?>", total());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines