1230 |
18 Oct 10 |
peter |
1 |
#ifndef _theplu_svndigest_svndigest_visitor_ |
1230 |
18 Oct 10 |
peter |
2 |
#define _theplu_svndigest_svndigest_visitor_ |
1230 |
18 Oct 10 |
peter |
3 |
|
1230 |
18 Oct 10 |
peter |
// $Id$ |
1230 |
18 Oct 10 |
peter |
5 |
|
1230 |
18 Oct 10 |
peter |
6 |
/* |
1478 |
29 May 12 |
peter |
Copyright (C) 2010, 2012 Peter Johansson |
1230 |
18 Oct 10 |
peter |
8 |
|
1230 |
18 Oct 10 |
peter |
This file is part of svndigest, http://dev.thep.lu.se/svndigest |
1230 |
18 Oct 10 |
peter |
10 |
|
1230 |
18 Oct 10 |
peter |
svndigest is free software; you can redistribute it and/or modify it |
1230 |
18 Oct 10 |
peter |
under the terms of the GNU General Public License as published by |
1230 |
18 Oct 10 |
peter |
the Free Software Foundation; either version 3 of the License, or |
1230 |
18 Oct 10 |
peter |
(at your option) any later version. |
1230 |
18 Oct 10 |
peter |
15 |
|
1230 |
18 Oct 10 |
peter |
svndigest is distributed in the hope that it will be useful, but |
1230 |
18 Oct 10 |
peter |
WITHOUT ANY WARRANTY; without even the implied warranty of |
1230 |
18 Oct 10 |
peter |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1230 |
18 Oct 10 |
peter |
General Public License for more details. |
1230 |
18 Oct 10 |
peter |
20 |
|
1230 |
18 Oct 10 |
peter |
You should have received a copy of the GNU General Public License |
1230 |
18 Oct 10 |
peter |
along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
1230 |
18 Oct 10 |
peter |
23 |
*/ |
1230 |
18 Oct 10 |
peter |
24 |
|
1230 |
18 Oct 10 |
peter |
25 |
#include "NodeVisitor.h" |
1230 |
18 Oct 10 |
peter |
26 |
|
1478 |
29 May 12 |
peter |
27 |
#include <subversion-1/svn_types.h> |
1478 |
29 May 12 |
peter |
28 |
|
1478 |
29 May 12 |
peter |
29 |
#include <vector> |
1478 |
29 May 12 |
peter |
30 |
|
1230 |
18 Oct 10 |
peter |
31 |
namespace theplu{ |
1230 |
18 Oct 10 |
peter |
32 |
namespace svndigest{ |
1230 |
18 Oct 10 |
peter |
33 |
|
1230 |
18 Oct 10 |
peter |
34 |
class Directory; |
1230 |
18 Oct 10 |
peter |
35 |
class File; |
1230 |
18 Oct 10 |
peter |
36 |
|
1230 |
18 Oct 10 |
peter |
37 |
/** |
1230 |
18 Oct 10 |
peter |
38 |
*/ |
1230 |
18 Oct 10 |
peter |
39 |
class SvndigestVisitor : public NodeVisitor |
1230 |
18 Oct 10 |
peter |
40 |
{ |
1230 |
18 Oct 10 |
peter |
41 |
public: |
1535 |
06 Oct 12 |
peter |
42 |
SvndigestVisitor(bool verbose, bool ignore_cache, bool report,bool update); |
1230 |
18 Oct 10 |
peter |
43 |
|
1230 |
18 Oct 10 |
peter |
44 |
/** |
1230 |
18 Oct 10 |
peter |
45 |
*/ |
1230 |
18 Oct 10 |
peter |
46 |
bool enter(Directory& dir); |
1230 |
18 Oct 10 |
peter |
47 |
|
1230 |
18 Oct 10 |
peter |
48 |
/** |
1230 |
18 Oct 10 |
peter |
49 |
*/ |
1230 |
18 Oct 10 |
peter |
50 |
void leave(Directory& dir); |
1230 |
18 Oct 10 |
peter |
51 |
|
1230 |
18 Oct 10 |
peter |
52 |
/** |
1230 |
18 Oct 10 |
peter |
53 |
*/ |
1230 |
18 Oct 10 |
peter |
54 |
void visit(File& dir); |
1230 |
18 Oct 10 |
peter |
55 |
|
1230 |
18 Oct 10 |
peter |
56 |
private: |
1230 |
18 Oct 10 |
peter |
57 |
bool verbose_; |
1230 |
18 Oct 10 |
peter |
58 |
bool ignore_cache_; |
1230 |
18 Oct 10 |
peter |
59 |
bool report_; |
1535 |
06 Oct 12 |
peter |
60 |
bool update_; |
1478 |
29 May 12 |
peter |
61 |
std::vector<svn_revnum_t> ignore_rev_; |
1230 |
18 Oct 10 |
peter |
62 |
}; |
1230 |
18 Oct 10 |
peter |
63 |
}} // end of namespace svndigest and namespace theplu |
1230 |
18 Oct 10 |
peter |
64 |
|
1230 |
18 Oct 10 |
peter |
65 |
#endif |