source: branches/0.7-stable/lib/BlameStats.h @ 1000

Last change on this file since 1000 was 1000, checked in by Peter Johansson, 14 years ago

updating copyrights

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#ifndef _theplu_svndigest_blame_stats_
2#define _theplu_svndigest_blame_stats_
3
4// $Id: BlameStats.h 1000 2010-01-02 01:45:02Z peter $
5
6/*
7  Copyright (C) 2005 Peter Johansson
8  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
9  Copyright (C) 2010 Peter Johansson
10
11  This file is part of svndigest, http://dev.thep.lu.se/svndigest
12
13  svndigest is free software; you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation; either version 3 of the License, or
16  (at your option) any later version.
17
18  svndigest is distributed in the hope that it will be useful, but
19  WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  General Public License for more details.
22
23  You should have received a copy of the GNU General Public License
24  along with svndigest. If not, see <http://www.gnu.org/licenses/>.
25*/
26
27#include "Stats.h"
28
29namespace theplu{
30namespace svndigest{
31
32  ///
33  /// Class taking care of statistics from svn.
34  ///
35  class BlameStats : public Stats
36  {
37  public:
38    ///
39    /// @brief Default Constructor
40    ///
41    explicit BlameStats(const std::string& path);
42
43    BlameStats(const BlameStats& other);
44
45  private:
46    void do_parse(const std::string&, svn_revnum_t);
47    void fill_in(Author2Vector&, svn_revnum_t rev);
48    unsigned int max_element(const std::vector<unsigned int>&) const; 
49
50  };
51}} // end of namespace svndigest end of namespace theplu
52
53#endif
Note: See TracBrowser for help on using the repository browser.