source: trunk/lib/File.h @ 44

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

modified output file names

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1// $Id: File.h 29 2006-01-09 09:35:50Z peter $
2
3#ifndef _theplu_svnstat_file_
4#define _theplu_svnstat_file_
5
6#include "Node.h"
7
8#include <string>
9
10namespace theplu{
11namespace svnstat{
12
13  class File : public Node
14  {
15  public:
16    ///
17    /// @brief Default Constructor
18    ///
19    File(const std::string& path, const std::string& output="") 
20      : Node(path,output), binary_(false) {}
21
22    ///
23    /// Parsing out information from svn repository
24    ///
25    /// @return true if succesful
26    ///
27    const Stats& parse(void);
28
29    ///
30    ///
31    ///
32    void print(const std::string& path) const;
33
34  private:
35    ///
36    /// @brief Parsing svn blame output
37    ///
38    /// @return true if parsing is succesful
39    ///
40    bool blame(void) const;
41   
42    ///
43    /// @brief Copy Constructor, not implemented
44    ///
45    File(const File&);
46
47    ///
48    /// Extracts information from 'svn info <node>'
49    ///
50    /// @note <node> must be in subversion control.
51    ///
52    void info(void);
53
54    std::string author_;
55    bool binary_;
56    u_int revision_;
57 
58  };
59
60}} // end of namespace svnstat and namespace theplu
61
62#endif
63
64
Note: See TracBrowser for help on using the repository browser.