// Site Mapper // // Douglas Thrift // // $Id$ #ifndef _SiteMapper_hpp_ #define _SiteMapper_hpp_ #ifdef _WIN32 #pragma warning(disable:4267 4503 4786) #endif #include #include #include #include #include #include #include using std::cin; using std::cout; using std::cerr; using std::ostream; using std::ofstream; using std::string; using std::ostringstream; using std::vector; using std::map; using std::multimap; using std::pair; #include #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_