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 |
|
|
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 |
|
|
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()); |
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()); |