source: trunk/lib/CommitStat.h @ 74

Last change on this file since 74 was 73, checked in by Jari Häkkinen, 16 years ago

Divided Gnuplot class into a basic gnuplot communication class
and a front end class specialized for svnstat.
Added option to plot stats against time or revision.
Removed gnuplot usage of temporary files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 900 bytes
Line 
1//$Id: CommitStat.h 73 2006-03-04 18:10:07Z jari $
2
3#ifndef _theplu_svnstat_commit_stat_
4#define _theplu_svnstat_commit_stat_
5
6#include <string>
7#include <vector>
8
9namespace theplu{
10namespace svnstat{
11
12  ///
13  /// Class for parsing and storing information from svn log
14  ///
15  class CommitStat
16  {
17  public:
18    ///
19    /// @brief Default Constructor
20    ///
21    inline CommitStat(void) {}
22
23    inline const std::vector<std::string>& dates(void) { return date_; }
24
25    ///
26    /// Function parsing output from log() \a path'.
27    ///
28    /// @return return value from system call
29    ///
30    int parse(const std::string& path);
31
32    inline const std::vector<std::string>& date(void) const { return date_; }
33
34  private:
35    ///
36    /// @return return value from 'svn log -q -r 1:HEAD \a path'
37    ///
38    int log(const std::string& path) const;
39
40    void reset(void);
41
42    std::vector<std::string> date_;
43
44  };
45}}
46// end of namespace svnstat end of namespace theplu
47
48#endif
Note: See TracBrowser for help on using the repository browser.