ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/SiteMapper/SiteMapper.hpp
(Generate patch)

Comparing SiteMapper/SiteMapper.hpp (file contents):
Revision 139 by Douglas Thrift, 2004-03-25T16:10:22-08:00 vs.
Revision 635 by douglas, 2005-12-31T16:12:15-08:00

# Line 7 | Line 7
7   #ifndef _SiteMapper_hpp_
8   #define _SiteMapper_hpp_
9  
10 < #include <iostream>
11 < #include <fstream>
12 < #include <string>
13 < #include <sstream>
14 < #include <vector>
15 < #include <set>
10 > #include <cxx/platform.hpp>
11  
12 < using namespace std;
12 > #ifdef MENES_PRAGMA_ONCE
13 > #pragma once
14 > #endif
15 >
16 > #include <api/files.hpp>
17 > #include <ios/string.hpp>
18 > #include <xml/document.hpp>
19 > #include <xml/nodeset.hpp>
20 > #include <xml/parse.hpp>
21 > #include <xml/textwriter.hpp>
22  
23 < extern string program;
24 < extern bool debug;
23 > #include <string>
24 > #include <map>
25  
26   #include "Page.hpp"
27  
24 #include <xalanc/Include/PlatformDefinitions.hpp>
25 #include <xercesc/util/PlatformUtils.hpp>
26 #include <xercesc/framework/LocalFileInputSource.hpp>
27 #include <xalanc/XPath/XObject.hpp>
28 #include <xalanc/XPath/XPathEvaluator.hpp>
29 #include <xalanc/XPath/NodeRefList.hpp>
30 #include <xalanc/DOMSupport/XalanDocumentPrefixResolver.hpp>
31 #include <xalanc/XalanSourceTree/XalanSourceTreeDOMSupport.hpp>
32 #include <xalanc/XalanSourceTree/XalanSourceTreeInit.hpp>
33 #include <xalanc/XalanSourceTree/XalanSourceTreeParserLiaison.hpp>
34
35 XALAN_USING_XERCES(XMLPlatformUtils)
36 XALAN_USING_XERCES(LocalFileInputSource)
37 XALAN_USING_XALAN(XObjectPtr)
38 XALAN_USING_XALAN(XPath)
39 XALAN_USING_XALAN(XPathEvaluator)
40 XALAN_USING_XALAN(NodeRefList)
41 XALAN_USING_XALAN(XalanDocument)
42 XALAN_USING_XALAN(XalanDocumentPrefixResolver)
43 XALAN_USING_XALAN(XalanDOMString)
44 XALAN_USING_XALAN(XalanNode)
45 XALAN_USING_XALAN(XalanSourceTreeInit)
46 XALAN_USING_XALAN(XalanSourceTreeDOMSupport)
47 XALAN_USING_XALAN(XalanSourceTreeParserLiaison)
48
28   class SiteMapper
29   {
30   private:
31 <        vector<Page> pages;
32 <        set<Page> newPages;
33 <        XalanSourceTreeInit init;
34 <        XalanSourceTreeDOMSupport support;
35 <        XalanSourceTreeParserLiaison liaison;
36 <        XPathEvaluator evaluator;
37 <        XPath* item;
38 <        XPath* address;
39 <        XPath* link;
61 <        XPath* list;
62 <        XPath* port;
63 <        XPath* path;
64 <        XPath* title;
65 <        void oldMap(const string& siteMap);
66 <        void oldMap(vector<Page>& pages, XalanNode* list);
67 <        void index(const string& siteIndex);
68 <        void newMap(const string& siteMap);
31 >        cse::String comment;
32 >        ext::Vector<Page> pages;
33 >        std::map<std::string, std::multimap<std::string, Page> > newPages;
34 >        void oldMap(const cse::String& siteMap);
35 >        void oldMap(ext::Vector<Page>& pages, xml::Node* list);
36 >        void newIndex(const cse::String& siteIndex);
37 >        bool newIndex(ext::Vector<Page>& pages, Page& page);
38 >        void newMap(const cse::String& siteMap);
39 >        void newMap(ext::Vector<Page>& pages, const cse::String& childOf, std::multimap<std::string, Page>& newPages);
40   public:
41 <        SiteMapper(const string& siteIndex, const string& siteMap);
42 <        ~SiteMapper() {}
41 >        SiteMapper(const cse::String& siteIndex, const cse::String& siteMap);
42 >        static cse::String program;
43 >        static bool debug;
44   };
45  
46   #endif // _SiteMapper_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines