1 |
|
/* ============================================================================ |
2 |
|
* Douglas Thrift's Search Engine License |
3 |
|
* |
4 |
< |
* Copyright (C) 2002-2004, Douglas Thrift. All Rights Reserved. |
4 |
> |
* Copyright (C) 2002-2004, 2008, Douglas Thrift. All Rights Reserved. |
5 |
|
* Redistribution and use in source and binary forms, with or without |
6 |
|
* modification, are permitted provided that the following conditions are met: |
7 |
|
* |
63 |
|
class Indexer |
64 |
|
{ |
65 |
|
private: |
66 |
< |
enum robot { none, version, name, all }; |
66 |
> |
enum Robot { none, version, name, all }; |
67 |
|
HttpHandler http; |
68 |
|
Processor processor; |
69 |
|
Set pages; |
75 |
|
bool restricted(URL& url); |
76 |
|
void robots(URL& url); |
77 |
|
public: |
78 |
< |
Indexer(string& indexFile, set<string>& domains, set<string>& |
79 |
< |
restrictions) : indexFile(indexFile), domains(domains), |
78 |
> |
Indexer(string& indexFile, set<string>& domains, |
79 |
> |
set<string>& restrictions) : indexFile(indexFile), domains(domains), |
80 |
|
restrictions(restrictions) {} |
81 |
|
~Indexer() {} |
82 |
|
void index(string& begin); |