61 |
|
bool query, results; |
62 |
|
double time; |
63 |
|
vector<Ranker> webpages; |
64 |
< |
unsigned numWebpages, numPages; |
65 |
< |
void header(const string& query, unsigned page, |
64 |
> |
size_t numWebpages, numPages; |
65 |
> |
void header(const string& query, size_t 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, |
69 |
> |
void footer(const string& query, size_t 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); |
72 |
> |
void notfound(const string& query, size_t keywords); |
73 |
> |
string pages(string query, size_t page); |
74 |
> |
string range(size_t page); |
75 |
|
string total(); |
76 |
|
string duration(); |
77 |
|
string manycommon(const vector<string>& common); |
78 |
< |
void tag(string& line, char* tag, const string& replacement); |
79 |
< |
void conditional(string& line, ifstream& fin, char* tag, bool condition); |
78 |
> |
void tag(string& line, const char* tag, const string& replacement); |
79 |
> |
void conditional(string& line, ifstream& fin, const char* tag, bool condition); |
80 |
|
public: |
81 |
|
Outputter(const string& headerFile, const string& bodyFile, |
82 |
|
const string& footerFile, const string& notfoundFile, |
84 |
|
footerFile(footerFile), notfoundFile(notfoundFile), |
85 |
|
pagesFile(pagesFile) {} |
86 |
|
~Outputter() {} |
87 |
< |
void output(Searcher& searcher, unsigned page); |
87 |
> |
void output(Searcher& searcher, size_t page); |
88 |
|
}; |
89 |
|
|
90 |
|
#endif // _Outputter_hpp_ |