// Site Mapper // // Douglas Thrift // // $Id$ #ifndef _SiteMapper_hpp_ #define _SiteMapper_hpp_ #include #include #include #include #include #include #include using namespace std; extern string program; extern bool debug; #include "Page.hpp" #include #include #include #include #include #include #include #include #include #include XALAN_USING_XERCES(XMLPlatformUtils) XALAN_USING_XERCES(LocalFileInputSource) XALAN_USING_XALAN(XObjectPtr) XALAN_USING_XALAN(XPath) XALAN_USING_XALAN(XPathEvaluator) XALAN_USING_XALAN(NodeRefList) XALAN_USING_XALAN(XalanDocument) XALAN_USING_XALAN(XalanDocumentPrefixResolver) XALAN_USING_XALAN(XalanDOMString) XALAN_USING_XALAN(XalanNode) XALAN_USING_XALAN(XalanSourceTreeInit) XALAN_USING_XALAN(XalanSourceTreeDOMSupport) XALAN_USING_XALAN(XalanSourceTreeParserLiaison) class SiteMapper { private: vector pages; map > newPages; XalanSourceTreeInit init; XalanSourceTreeDOMSupport support; XalanSourceTreeParserLiaison liaison; XPathEvaluator evaluator; XPath* item; XPath* address; XPath* link; XPath* list_; XPath* port; XPath* path; XPath* title; void oldMap(const string& siteMap); void oldMap(vector& pages, XalanNode* list); void newIndex(const string& siteIndex); bool newIndex(vector& pages, Page& page); void newMap(const string& siteMap); public: SiteMapper(const string& siteIndex, const string& siteMap); ~SiteMapper() {} }; #endif // _SiteMapper_hpp_