1 |
// Site Mapper |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _SiteMapper_hpp_ |
8 |
#define _SiteMapper_hpp_ |
9 |
|
10 |
#include <iostream> |
11 |
#include <fstream> |
12 |
#include <string> |
13 |
#include <vector> |
14 |
#include <set> |
15 |
|
16 |
using namespace std; |
17 |
|
18 |
extern string program; |
19 |
extern bool debug; |
20 |
|
21 |
#include "Page.hpp" |
22 |
|
23 |
class SiteMapper |
24 |
{ |
25 |
private: |
26 |
vector<Page> pages; |
27 |
set<Page> newPages; |
28 |
void oldMap(const string& siteMap); |
29 |
void index(const string& siteIndex); |
30 |
void newMap(const string& siteMap); |
31 |
public: |
32 |
SiteMapper(const string& siteIndex, const string& siteMap); |
33 |
~SiteMapper() {} |
34 |
}; |
35 |
|
36 |
#endif // _SiteMapper_hpp_ |