source: trunk/lib/AddStats.h @ 1194

Last change on this file since 1194 was 1194, checked in by Peter Johansson, 11 years ago

refs #475. First version using Sparse Vector class. This change is obviously quite invasive and thus the size of this commit is larger than what is preferred. I've tried to limit as much as possible and left optimization and style issues behind with a note 'FIXME'.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#ifndef _theplu_svndigest_add_stats_
2#define _theplu_svndigest_add_stats_
3
4// $Id: AddStats.h 1194 2010-10-03 23:39:12Z 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 AddStats : public Stats
36  {
37  public:
38    ///
39    /// @brief Default Constructor
40    ///
41    explicit AddStats(const std::string& path);
42
43    AddStats(const AddStats& other);
44
45  private:
46    void do_parse(const std::string&, svn_revnum_t);
47    unsigned int max_element(const SumVector&) const; 
48
49  };
50}} // end of namespace svndigest end of namespace theplu
51
52#endif
Note: See TracBrowser for help on using the repository browser.