ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/Search/trunk/Indexer.hpp
(Generate patch)

Comparing:
trunk/Search/Indexer.h (file contents), Revision 37 by douglas, 2003-01-16T22:24:01-08:00 vs.
Search/trunk/Indexer.hpp (file contents), Revision 372 by douglas, 2008-08-23T04:00:12-07:00

# Line 1 | Line 1
1   /* ============================================================================
2   * Douglas Thrift's Search Engine License
3   *
4 < * Copyright (C) 2002-2003, Douglas Thrift. All Rights Reserved.
4 > * Copyright (C) 2002-2004, 2008, Douglas Thrift. All Rights Reserved.
5   * Redistribution and use in source and binary forms, with or without
6   * modification, are permitted provided that the following conditions are met:
7   *
# Line 46 | Line 46
46   //
47   // Douglas Thrift
48   //
49 < // Indexer.h
49 > // $Id$
50  
51 < #ifndef _Indexer_h_
52 < #define _Indexer_h_
51 > #ifndef _Indexer_hpp_
52 > #define _Indexer_hpp_
53  
54 < #include "Search.h"
55 < #include "URL.h"
56 < #include "Page.h"
57 < #include "HttpHandler.h"
58 < #include "Processor.h"
54 > #include "Search.hpp"
55 > #include "URL.hpp"
56 > #include "Page.hpp"
57 > #include "HttpHandler.hpp"
58 > #include "Processor.hpp"
59  
60   typedef set<string> Set;
61   typedef set<string>::iterator SetIterator;
# Line 63 | Line 63 | typedef set<string>::iterator SetIterato
63   class Indexer
64   {
65   private:
66 <        enum robot { none, version, name, all };
66 >        enum Robot { none, version, name, all };
67          HttpHandler http;
68          Processor processor;
69          Set pages;
70          queue<URL> links;
71          queue<string> referers;
72          string indexFile;
73 <        Set domains;
74 <        Set restrictions;
75 <        Set checked;
76 <        void index(URL& url, ofstream& fout, const string referer = "");
73 >        Set domains, restrictions, checked;
74 >        void index(URL& url, ofstream& fout, const string& referer = "");
75          bool restricted(URL& url);
76          void robots(URL& url);
77   public:
78 <        Indexer(string& indexFile, set<string>& domains, set<string>&
79 <                restrictions);
78 >        Indexer(string& indexFile, set<string>& domains,
79 >                set<string>& restrictions) : indexFile(indexFile), domains(domains),
80 >                restrictions(restrictions) {}
81          ~Indexer() {}
82          void index(string& begin);
83   };
84  
85 < #endif // _Indexer_h_
85 > #endif // _Indexer_hpp_

Comparing:
trunk/Search/Indexer.h (property svn:eol-style), Revision 37 by douglas, 2003-01-16T22:24:01-08:00 vs.
Search/trunk/Indexer.hpp (property svn:eol-style), Revision 372 by douglas, 2008-08-23T04:00:12-07:00

# Line 0 | Line 1
1 + native

Comparing:
trunk/Search/Indexer.h (property svn:keywords), Revision 37 by douglas, 2003-01-16T22:24:01-08:00 vs.
Search/trunk/Indexer.hpp (property svn:keywords), Revision 372 by douglas, 2008-08-23T04:00:12-07:00

# Line 0 | Line 1
1 + Id

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines