"Fossies" - the Fresh Open Source Software Archive 
Member "srg-1.3.6/include/SiteReport.h" (5 Aug 2009, 1253 Bytes) of package /linux/privat/old/srg-1.3.6.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /*
2 SRG - Squid Report Generator
3 Site Report Header
4 Copyright 2005 University of Waikato
5
6 This file is part of SRG.
7
8 SRG is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 SRG is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with SRG; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
22 */
23
24 #ifndef SITEREPORT_H
25 #define SITEREPORT_H
26
27 #include "srg.h"
28 #include "LocationReport.h"
29
30
31 class SiteReport : public Report {
32
33 public:
34
35 SiteReport(char * site) : Report(site) {}
36 ~SiteReport();
37
38 void generate_report(const char *, const char *);
39
40 void process_line(const log_line *line);
41 void updateStats();
42 summary_info getStats();
43
44 private:
45 LocationReport *findLocation(char * location);
46 list<LocationReport*> locations;
47 };
48
49 #endif // SITEREPORT_H