11 |
|
#include <fstream> |
12 |
|
#include <string> |
13 |
|
#include <sstream> |
14 |
< |
//#include <vector> |
14 |
> |
#include <vector> |
15 |
|
#include <list> |
16 |
|
#include <set> |
17 |
|
|
50 |
|
class SiteMapper |
51 |
|
{ |
52 |
|
private: |
53 |
< |
list<Page> pages; |
54 |
< |
set<Page> newPages; |
53 |
> |
vector<Page> pages; |
54 |
> |
map<string, map<string, Page> > newPages; |
55 |
|
XalanSourceTreeInit init; |
56 |
|
XalanSourceTreeDOMSupport support; |
57 |
|
XalanSourceTreeParserLiaison liaison; |
64 |
|
XPath* path; |
65 |
|
XPath* title; |
66 |
|
void oldMap(const string& siteMap); |
67 |
< |
void oldMap(list<Page>& pages, XalanNode* list); |
68 |
< |
void index(const string& siteIndex); |
67 |
> |
void oldMap(vector<Page>& pages, XalanNode* list); |
68 |
> |
void newIndex(const string& siteIndex); |
69 |
> |
bool newIndex(vector<Page>& pages, Page& page); |
70 |
|
void newMap(const string& siteMap); |
71 |
|
public: |
72 |
|
SiteMapper(const string& siteIndex, const string& siteMap); |