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

Comparing trunk/Search/Outputer.h (file contents):
Revision 1 by douglas, 2002-12-04T20:22:59-08:00 vs.
Revision 312 by douglas, 2004-01-01T15:00:34-08:00

# Line 1 | Line 1
1   /* ============================================================================
2   * Douglas Thrift's Search Engine License
3   *
4 < * Copyright (C) 2002, Douglas Thrift. All Rights Reserved.
4 > * Copyright (C) 2002-2004, 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 < // Outputer.h
49 > // $Id: Outputer.h,v 1.5 2004/01/01 23:00:34 douglas Exp $
50  
51   #ifndef _Outputer_h_
52   #define _Outputer_h_
# Line 68 | Line 68 | private:
68          vector<Ranker> webpages;
69          unsigned numWebpages;
70          unsigned numPages;
71 <        void header(string& query, unsigned page, vector<string> common, bool and_,
72 <                bool or_, string& ignore);
71 >        void header(const string& query, unsigned page, vector<string> common, bool
72 >                and_, bool or_, const string& ignore);
73          void body();
74 <        void footer(string& query, unsigned page, vector<string> common, bool and_,
75 <                bool or_, string& ignore);
76 <        void notfound(string& query, unsigned keywords);
74 >        void footer(const string& query, unsigned page, vector<string> common, bool
75 >                and_, bool or_, const string& ignore);
76 >        void notfound(const string& query, unsigned keywords);
77          string pages(string query, unsigned page);
78          string range(unsigned page);
79          string total();
80          string duration();
81          string manycommon(vector<string> common);
82 <        void tag(string& line, char* tag, string& replacement);
82 >        void tag(string& line, char* tag, const string& replacement);
83          void conditional(string& line, ifstream& fin, char* tag, bool condition);
84   public:
85 <        Outputer(string& headerFile, string& bodyFile,
86 <                string& footerFile, string& notfoundFile, string& pagesFile);
85 >        Outputer(const string& headerFile, const string& bodyFile, const string&
86 >                footerFile, const string& notfoundFile, const string& pagesFile);
87          ~Outputer() {}
88          void output(Searcher& searcher, unsigned page);
89   };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines