source: trunk/lib/CommitStat.h @ 63

Last change on this file since 63 was 63, checked in by Peter Johansson, 16 years ago

Fixed problem with mapping revison to date. Removed mkstemps. name of
png files are now in line with their html file name. Binary works on
svnstat, but is asserted on c++_tools.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 899 bytes
Line 
1//$Id: CommitStat.h 63 2006-01-19 23:07:36Z peter $
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.