Last change
on this file since 23 was
23,
checked in by Peter Johansson, 17 years ago
|
added print functionality
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Line | |
---|
1 | // $Id: File.h 23 2006-01-02 08:14:57Z 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 | inline File(const std::string& path) : Node(path), binary_(false) {} |
---|
20 | |
---|
21 | /// |
---|
22 | /// Parsing out information from svn repository |
---|
23 | /// |
---|
24 | /// @return true if succesful |
---|
25 | /// |
---|
26 | const Stats& parse(void); |
---|
27 | |
---|
28 | /// |
---|
29 | /// |
---|
30 | /// |
---|
31 | void print(const std::string& path) const; |
---|
32 | |
---|
33 | /// |
---|
34 | /// |
---|
35 | /// |
---|
36 | void print_link(std::ostream&) const; |
---|
37 | |
---|
38 | private: |
---|
39 | /// |
---|
40 | /// @brief Parsing svn blame output |
---|
41 | /// |
---|
42 | /// @return true if parsing is succesful |
---|
43 | /// |
---|
44 | bool blame(void) const; |
---|
45 | |
---|
46 | /// |
---|
47 | /// @brief Copy Constructor, not implemented |
---|
48 | /// |
---|
49 | File(const File&); |
---|
50 | |
---|
51 | /// |
---|
52 | /// Extracts information from 'svn info <node>' |
---|
53 | /// |
---|
54 | /// @note <node> must be in subversion control. |
---|
55 | /// |
---|
56 | void info(void); |
---|
57 | |
---|
58 | std::string author_; |
---|
59 | bool binary_; |
---|
60 | u_int revision_; |
---|
61 | |
---|
62 | }; |
---|
63 | |
---|
64 | }} // end of namespace svnstat and namespace theplu |
---|
65 | |
---|
66 | #endif |
---|
67 | |
---|
68 | |
---|
Note: See
TracBrowser
for help on using the repository browser.