1290 |
12 Nov 10 |
peter |
1 |
#ifndef _theplu_svndigest_directory_printer_ |
1290 |
12 Nov 10 |
peter |
2 |
#define _theplu_svndigest_directory_printer_ |
165 |
24 Aug 06 |
jari |
3 |
|
7 |
30 Dec 05 |
jari |
// $Id$ |
7 |
30 Dec 05 |
jari |
5 |
|
84 |
13 Mar 06 |
jari |
6 |
/* |
978 |
12 Dec 09 |
peter |
Copyright (C) 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson |
1515 |
26 Sep 12 |
peter |
Copyright (C) 2009, 2010, 2012 Peter Johansson |
84 |
13 Mar 06 |
jari |
9 |
|
687 |
04 Aug 08 |
peter |
This file is part of svndigest, http://dev.thep.lu.se/svndigest |
84 |
13 Mar 06 |
jari |
11 |
|
149 |
12 Aug 06 |
jari |
svndigest is free software; you can redistribute it and/or modify it |
84 |
13 Mar 06 |
jari |
under the terms of the GNU General Public License as published by |
693 |
11 Sep 08 |
jari |
the Free Software Foundation; either version 3 of the License, or |
84 |
13 Mar 06 |
jari |
(at your option) any later version. |
84 |
13 Mar 06 |
jari |
16 |
|
149 |
12 Aug 06 |
jari |
svndigest is distributed in the hope that it will be useful, but |
84 |
13 Mar 06 |
jari |
WITHOUT ANY WARRANTY; without even the implied warranty of |
149 |
12 Aug 06 |
jari |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
84 |
13 Mar 06 |
jari |
General Public License for more details. |
84 |
13 Mar 06 |
jari |
21 |
|
84 |
13 Mar 06 |
jari |
You should have received a copy of the GNU General Public License |
693 |
11 Sep 08 |
jari |
along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
84 |
13 Mar 06 |
jari |
24 |
*/ |
84 |
13 Mar 06 |
jari |
25 |
|
1290 |
12 Nov 10 |
peter |
26 |
#include "NodePrinter.h" |
4 |
29 Dec 05 |
peter |
27 |
|
226 |
11 Mar 07 |
peter |
28 |
#include <map> |
18 |
30 Dec 05 |
jari |
29 |
#include <string> |
661 |
12 Jun 08 |
peter |
30 |
#include <vector> |
4 |
29 Dec 05 |
peter |
31 |
|
4 |
29 Dec 05 |
peter |
32 |
namespace theplu{ |
149 |
12 Aug 06 |
jari |
33 |
namespace svndigest{ |
4 |
29 Dec 05 |
peter |
34 |
|
1290 |
12 Nov 10 |
peter |
35 |
class Directory; |
1290 |
12 Nov 10 |
peter |
36 |
class Node; |
1234 |
23 Oct 10 |
peter |
37 |
|
9 |
30 Dec 05 |
jari |
38 |
/// |
9 |
30 Dec 05 |
jari |
/// Class taking care of directories. |
9 |
30 Dec 05 |
jari |
40 |
/// |
1290 |
12 Nov 10 |
peter |
41 |
class DirectoryPrinter : public NodePrinter |
9 |
30 Dec 05 |
jari |
42 |
{ |
9 |
30 Dec 05 |
jari |
43 |
public: |
1234 |
23 Oct 10 |
peter |
44 |
/** |
1290 |
12 Nov 10 |
peter |
\brief Constructor |
834 |
07 Nov 09 |
peter |
46 |
*/ |
1290 |
12 Nov 10 |
peter |
47 |
explicit DirectoryPrinter(const Directory&); |
834 |
07 Nov 09 |
peter |
48 |
|
834 |
07 Nov 09 |
peter |
49 |
/** |
1290 |
12 Nov 10 |
peter |
\brief Destructor |
380 |
21 Jun 07 |
jari |
51 |
*/ |
1290 |
12 Nov 10 |
peter |
52 |
~DirectoryPrinter(void); |
182 |
03 Sep 06 |
peter |
53 |
|
343 |
19 May 07 |
peter |
54 |
/** |
343 |
19 May 07 |
peter |
@return output path for example 'lib/File.h.html' for this file |
343 |
19 May 07 |
peter |
56 |
*/ |
343 |
19 May 07 |
peter |
57 |
std::string output_path(void) const; |
343 |
19 May 07 |
peter |
58 |
|
9 |
30 Dec 05 |
jari |
59 |
private: |
9 |
30 Dec 05 |
jari |
60 |
/// |
9 |
30 Dec 05 |
jari |
/// @brief Copy Constructor, not implemented |
9 |
30 Dec 05 |
jari |
62 |
/// |
1290 |
12 Nov 10 |
peter |
63 |
DirectoryPrinter(const DirectoryPrinter&); |
9 |
30 Dec 05 |
jari |
64 |
|
1290 |
12 Nov 10 |
peter |
65 |
const Node& node(void) const; |
1290 |
12 Nov 10 |
peter |
66 |
|
1537 |
07 Oct 12 |
peter |
67 |
std::string out_name(const std::string& stats_type, |
1537 |
07 Oct 12 |
peter |
68 |
const std::string& user, |
1537 |
07 Oct 12 |
peter |
69 |
const std::string& line_type) const; |
1537 |
07 Oct 12 |
peter |
70 |
|
258 |
30 Apr 07 |
peter |
71 |
void print_core(bool verbose=false) const; |
207 |
11 Sep 06 |
peter |
72 |
|
1513 |
23 Sep 12 |
peter |
73 |
void print_core(const std::string& stats_type, const std::string& user, |
497 |
14 Oct 07 |
peter |
74 |
const std::string& line_type, const SVNlog&) const; |
207 |
11 Sep 06 |
peter |
75 |
|
258 |
30 Apr 07 |
peter |
76 |
|
1290 |
12 Nov 10 |
peter |
77 |
|
1513 |
23 Sep 12 |
peter |
78 |
|
1290 |
12 Nov 10 |
peter |
79 |
const Directory& directory_; |
658 |
10 Jun 08 |
peter |
80 |
typedef std::vector<Node*> NodeContainer; |
91 |
23 Mar 06 |
jari |
81 |
typedef NodeContainer::iterator NodeIterator; |
91 |
23 Mar 06 |
jari |
82 |
typedef NodeContainer::const_iterator NodeConstIterator; |
9 |
30 Dec 05 |
jari |
83 |
}; |
9 |
30 Dec 05 |
jari |
84 |
|
149 |
12 Aug 06 |
jari |
85 |
}} // end of namespace svndigest and namespace theplu |
7 |
30 Dec 05 |
jari |
86 |
|
7 |
30 Dec 05 |
jari |
87 |
#endif |