48 |
|
// |
49 |
|
// $Id$ |
50 |
|
|
51 |
< |
#ifndef _Searcher_h_ |
52 |
< |
#define _Searcher_h_ |
51 |
> |
#ifndef _Searcher_hpp_ |
52 |
> |
#define _Searcher_hpp_ |
53 |
|
|
54 |
< |
#include "Search.h" |
55 |
< |
#include "Page.h" |
56 |
< |
#include "URL.h" |
57 |
< |
#include "Ranker.h" |
54 |
> |
#include "Search.hpp" |
55 |
> |
#include "Page.hpp" |
56 |
> |
#include "URL.hpp" |
57 |
> |
#include "Ranker.hpp" |
58 |
|
|
59 |
|
typedef multiset<Ranker, greater<Ranker> > MultiSet; |
60 |
|
typedef multiset<Ranker, greater<Ranker> >::iterator MultiSetIterator; |
67 |
|
MultiSet pages; |
68 |
|
set<string> common; |
69 |
|
vector<string> commonUsed; |
70 |
< |
bool and_; |
71 |
< |
bool or_; |
70 |
> |
bool and_, or_; |
71 |
|
string ignore; |
72 |
< |
clock_t start; |
74 |
< |
clock_t finish; |
72 |
> |
clock_t start, finish; |
73 |
|
void search(Page& page); |
74 |
|
void setQuery(); |
75 |
|
void setCommon(); |
90 |
|
double time() { return double(finish - start) / double(CLOCKS_PER_SEC); } |
91 |
|
}; |
92 |
|
|
93 |
< |
#endif // _Searcher_h_ |
93 |
> |
#endif // _Searcher_hpp_ |