"Fossies" - the Fresh Open Source Software Archive

Member "srg-1.3.6/include/LocationReport.h" (5 Aug 2009, 1229 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     Location 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 #ifndef LOCATIONREPORT_H
   24 #define LOCATIONREPORT_H
   25 
   26 #include "srg.h"
   27 #include "Report.h"
   28 
   29 class LocationReport : public Report {
   30 
   31  public:
   32   
   33   LocationReport(char * location) : Report(location) {}
   34 
   35   void generate_report(const char *, const char *, const char *);
   36 
   37   void process_line(const log_line *line);
   38     summary_info getStats();
   39 
   40  private:
   41   list<time_t> times;
   42   list<bool> denied;
   43   list<char *> host;
   44 
   45 };
   46 
   47 #endif // LOCATIONSTATS_H