62 |
|
double time; |
63 |
|
vector<Ranker> webpages; |
64 |
|
unsigned numWebpages, numPages; |
65 |
< |
void header(const string& query, unsigned page, const vector<string>& |
66 |
< |
common, bool and_, bool or_, const string& ignore); |
65 |
> |
void header(const string& query, unsigned page, |
66 |
> |
const vector<string>& common, bool and_, bool or_, |
67 |
> |
const string& ignore); |
68 |
|
void body(); |
69 |
< |
void footer(const string& query, unsigned page, const vector<string>& |
70 |
< |
common, bool and_, bool or_, const string& ignore); |
69 |
> |
void footer(const string& query, unsigned page, |
70 |
> |
const vector<string>& common, bool and_, bool or_, |
71 |
> |
const string& ignore); |
72 |
|
void notfound(const string& query, unsigned keywords); |
73 |
|
string pages(string query, unsigned page); |
74 |
|
string range(unsigned page); |
78 |
|
void tag(string& line, char* tag, const string& replacement); |
79 |
|
void conditional(string& line, ifstream& fin, char* tag, bool condition); |
80 |
|
public: |
81 |
< |
Outputter(const string& headerFile, const string& bodyFile, const string& |
82 |
< |
footerFile, const string& notfoundFile, const string& pagesFile) : |
83 |
< |
headerFile(headerFile), bodyFile(bodyFile), footerFile(footerFile), |
84 |
< |
notfoundFile(notfoundFile), pagesFile(pagesFile) {} |
81 |
> |
Outputter(const string& headerFile, const string& bodyFile, |
82 |
> |
const string& footerFile, const string& notfoundFile, |
83 |
> |
const string& pagesFile) : headerFile(headerFile), bodyFile(bodyFile), |
84 |
> |
footerFile(footerFile), notfoundFile(notfoundFile), |
85 |
> |
pagesFile(pagesFile) {} |
86 |
|
~Outputter() {} |
87 |
|
void output(Searcher& searcher, unsigned page); |
88 |
|
}; |