source: trunk/lib/AddStats.h @ 1199

Last change on this file since 1199 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
RevLine 
[543]1#ifndef _theplu_svndigest_add_stats_
2#define _theplu_svndigest_add_stats_
[165]3
[84]4// $Id: AddStats.h 1194 2010-10-03 23:39:12Z peter $
[14]5
[84]6/*
[847]7  Copyright (C) 2005 Peter Johansson
[978]8  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
[1003]9  Copyright (C) 2010 Peter Johansson
[84]10
[687]11  This file is part of svndigest, http://dev.thep.lu.se/svndigest
[84]12
[149]13  svndigest is free software; you can redistribute it and/or modify it
[84]14  under the terms of the GNU General Public License as published by
[693]15  the Free Software Foundation; either version 3 of the License, or
[84]16  (at your option) any later version.
17
[149]18  svndigest is distributed in the hope that it will be useful, but
[84]19  WITHOUT ANY WARRANTY; without even the implied warranty of
[149]20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[84]21  General Public License for more details.
22
23  You should have received a copy of the GNU General Public License
[693]24  along with svndigest. If not, see <http://www.gnu.org/licenses/>.
[84]25*/
26
[487]27#include "Stats.h"
[118]28
[14]29namespace theplu{
[149]30namespace svndigest{
[14]31
32  ///
33  /// Class taking care of statistics from svn.
34  ///
[543]35  class AddStats : public Stats
[14]36  {
37  public:
38    ///
39    /// @brief Default Constructor
[34]40    ///
[543]41    explicit AddStats(const std::string& path);
[34]42
[543]43    AddStats(const AddStats& other);
[118]44
[14]45  private:
[664]46    void do_parse(const std::string&, svn_revnum_t);
[1194]47    unsigned int max_element(const SumVector&) const; 
[487]48
[14]49  };
[149]50}} // end of namespace svndigest end of namespace theplu
[14]51
[71]52#endif
Note: See TracBrowser for help on using the repository browser.