Last change
on this file since 72 was
72,
checked in by Peter Johansson, 18 years ago
|
prefer stl algorithms...
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
974 bytes
|
Line | |
---|
1 | // $Id: File.h 72 2006-03-02 22:16:24Z peter $ |
---|
2 | |
---|
3 | #ifndef _theplu_svnstat_file_ |
---|
4 | #define _theplu_svnstat_file_ |
---|
5 | |
---|
6 | #include "Node.h" |
---|
7 | |
---|
8 | #include <string> |
---|
9 | |
---|
10 | namespace theplu{ |
---|
11 | namespace 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), ignore_(false) {} |
---|
21 | |
---|
22 | /// |
---|
23 | /// Parsing out information from svn repository |
---|
24 | /// |
---|
25 | /// @return true if succesful |
---|
26 | /// |
---|
27 | const Stats& parse(const bool verbose=false); |
---|
28 | |
---|
29 | /// |
---|
30 | /// |
---|
31 | /// |
---|
32 | void print(const bool verbose=false) 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 | std::string author_; |
---|
48 | bool binary_; |
---|
49 | bool ignore_; |
---|
50 | u_int revision_; |
---|
51 | |
---|
52 | }; |
---|
53 | |
---|
54 | }} // end of namespace svnstat and namespace theplu |
---|
55 | |
---|
56 | #endif |
---|
57 | |
---|
58 | |
---|
Note: See
TracBrowser
for help on using the repository browser.