source: trunk/lib/CommitStat.h @ 61

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

fixed the problem with parsing from log?

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 836 bytes
Line 
1//$Id: CommitStat.h 61 2006-01-19 13:32:57Z 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    ///
24    /// Function parsing output from log() \a path'.
25    ///
26    /// @return return value from system call
27    ///
28    int parse(const std::string& path);
29
30    inline const std::vector<std::string> date(void) const { return date_; }
31
32  private:
33    ///
34    /// @return return value from 'svn log -q -r 1:HEAD \a path'
35    ///
36    int log(const std::string& path) const;
37
38    inline void reset(void) {};
39
40    std::vector<std::string> date_;
41  };
42}}
43// end of namespace svnstat end of namespace theplu
44
45#endif
Note: See TracBrowser for help on using the repository browser.