// Site Mapper // // Douglas Thrift // // $Id$ #ifndef _SiteMapper_hpp_ #define _SiteMapper_hpp_ #include #include #include #include #include #include using namespace std; #include #include #include extern string program; extern bool debug; #include "Page.hpp" class SiteMapper { private: string comment; vector pages; map > newPages; void oldMap(const string& siteMap); void oldMap(vector& pages, xml::Node* list); void newIndex(const string& siteIndex); bool newIndex(vector& pages, Page& page); void newMap(const string& siteMap); void newMap(vector& pages, const string& childOf, multimap& newPages); public: SiteMapper(const string& siteIndex, const string& siteMap); ~SiteMapper() {} }; #endif // _SiteMapper_hpp_