source: trunk/lib/SvndigestVisitor.h @ 1478

Last change on this file since 1478 was 1478, checked in by Peter Johansson, 9 years ago

closes #387

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