1 | #ifndef _theplu_svndigest_main_utility_ |
---|
2 | #define _theplu_svndigest_main_utility_ |
---|
3 | |
---|
4 | // $Id: main_utility.h 1102 2010-06-15 02:27:21Z peter $ |
---|
5 | |
---|
6 | /* |
---|
7 | Copyright (C) 2010 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 | /** |
---|
26 | \file This file contains some high level functions that typically |
---|
27 | are called from within main |
---|
28 | */ |
---|
29 | |
---|
30 | #include <string> |
---|
31 | |
---|
32 | namespace theplu { |
---|
33 | namespace svndigest { |
---|
34 | |
---|
35 | class Node; |
---|
36 | |
---|
37 | /** |
---|
38 | If \a file exists load configuration file, otherwise load default |
---|
39 | configuration. |
---|
40 | |
---|
41 | \trow if something is wrong |
---|
42 | */ |
---|
43 | void load_config(const std::string& file, bool verbose); |
---|
44 | |
---|
45 | /** |
---|
46 | \brief update copyright statements in \a node |
---|
47 | */ |
---|
48 | void update_copyright(const Node& node, bool verbose); |
---|
49 | |
---|
50 | }} // end of namespace svndigest end of namespace theplu |
---|
51 | |
---|
52 | #endif |
---|