1 |
|
/* ============================================================================ |
2 |
|
* Douglas Thrift's Search Engine License |
3 |
|
* |
4 |
< |
* Copyright (C) 2002, Douglas Thrift. All Rights Reserved. |
4 |
> |
* Copyright (C) 2002-2004, 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 |
|
* |
46 |
|
// |
47 |
|
// Douglas Thrift |
48 |
|
// |
49 |
< |
// Indexer.h |
49 |
> |
// $Id$ |
50 |
|
|
51 |
< |
#ifndef _Indexer_h_ |
52 |
< |
#define _Indexer_h_ |
51 |
> |
#ifndef _Indexer_hpp_ |
52 |
> |
#define _Indexer_hpp_ |
53 |
|
|
54 |
< |
#include "Search.h" |
55 |
< |
#include "URL.h" |
56 |
< |
#include "Page.h" |
57 |
< |
#include "HttpHandler.h" |
58 |
< |
#include "Processor.h" |
54 |
> |
#include "Search.hpp" |
55 |
> |
#include "URL.hpp" |
56 |
> |
#include "Page.hpp" |
57 |
> |
#include "HttpHandler.hpp" |
58 |
> |
#include "Processor.hpp" |
59 |
|
|
60 |
|
typedef set<string> Set; |
61 |
|
typedef set<string>::iterator SetIterator; |
77 |
|
bool restricted(URL& url); |
78 |
|
void robots(URL& url); |
79 |
|
public: |
80 |
< |
Indexer(string& indexFile, set<string>& domains, |
81 |
< |
set<string>& restrictions); |
80 |
> |
Indexer(string& indexFile, set<string>& domains, set<string>& |
81 |
> |
restrictions); |
82 |
|
~Indexer() {} |
83 |
|
void index(string& begin); |
84 |
|
}; |
85 |
|
|
86 |
< |
#endif // _Indexer_h_ |
86 |
> |
#endif // _Indexer_hpp_ |