42 |
|
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
43 |
|
* ============================================================================ |
44 |
|
*/ |
45 |
< |
// Douglas Thrift's Search Engine Outputer |
45 |
> |
// Douglas Thrift's Search Engine Outputter |
46 |
|
// |
47 |
|
// Douglas Thrift |
48 |
|
// |
49 |
|
// $Id$ |
50 |
|
|
51 |
< |
#ifndef _Outputer_hpp_ |
52 |
< |
#define _Outputer_hpp_ |
51 |
> |
#ifndef _Outputter_hpp_ |
52 |
> |
#define _Outputter_hpp_ |
53 |
|
|
54 |
|
#include "Search.hpp" |
55 |
|
#include "Searcher.hpp" |
56 |
|
|
57 |
< |
class Outputer |
57 |
> |
class Outputter |
58 |
|
{ |
59 |
|
private: |
60 |
|
string headerFile, bodyFile, footerFile, notfoundFile, pagesFile; |
76 |
|
void tag(string& line, char* tag, const string& replacement); |
77 |
|
void conditional(string& line, ifstream& fin, char* tag, bool condition); |
78 |
|
public: |
79 |
< |
Outputer(const string& headerFile, const string& bodyFile, const string& |
79 |
> |
Outputter(const string& headerFile, const string& bodyFile, const string& |
80 |
|
footerFile, const string& notfoundFile, const string& pagesFile) : |
81 |
|
headerFile(headerFile), bodyFile(bodyFile), footerFile(footerFile), |
82 |
|
notfoundFile(notfoundFile), pagesFile(pagesFile) {} |
83 |
< |
~Outputer() {} |
83 |
> |
~Outputter() {} |
84 |
|
void output(Searcher& searcher, unsigned page); |
85 |
|
}; |
86 |
|
|
87 |
< |
#endif // _Outputer_hpp_ |
87 |
> |
#endif // _Outputter_hpp_ |