1 | #ifndef _theplu_svndigest_rmdirhier_ |
---|
2 | #define _theplu_svndigest_rmdirhier_ |
---|
3 | |
---|
4 | // $Id: rmdirhier.h 693 2008-09-11 20:42:56Z jari $ |
---|
5 | |
---|
6 | /* |
---|
7 | Copyright (C) 2006 Jari Häkkinen, Peter Johansson |
---|
8 | Copyright (C) 2007 Peter Johansson |
---|
9 | |
---|
10 | This file is part of svndigest, http://dev.thep.lu.se/svndigest |
---|
11 | |
---|
12 | svndigest is free software; you can redistribute it and/or modify it |
---|
13 | under the terms of the GNU General Public License as published by |
---|
14 | the Free Software Foundation; either version 3 of the License, or |
---|
15 | (at your option) any later version. |
---|
16 | |
---|
17 | svndigest is distributed in the hope that it will be useful, but |
---|
18 | WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
20 | General Public License for more details. |
---|
21 | |
---|
22 | You should have received a copy of the GNU General Public License |
---|
23 | along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
---|
24 | */ |
---|
25 | |
---|
26 | #include <stdexcept> |
---|
27 | #include <string> |
---|
28 | |
---|
29 | namespace theplu { |
---|
30 | namespace svndigest { |
---|
31 | |
---|
32 | struct DirectoryError : public std::runtime_error |
---|
33 | { inline DirectoryError(const std::string& s) : runtime_error(s) {} }; |
---|
34 | |
---|
35 | struct BadDirectory : public DirectoryError |
---|
36 | { inline BadDirectory(const std::string& s) : DirectoryError(s) {} }; |
---|
37 | |
---|
38 | struct DirectoryOpenError : public DirectoryError |
---|
39 | { inline DirectoryOpenError(const std::string& s) : DirectoryError(s) {} }; |
---|
40 | |
---|
41 | struct FileDeleteError : public DirectoryError |
---|
42 | { FileDeleteError(const std::string& s) : DirectoryError(s) {} }; |
---|
43 | |
---|
44 | struct DirectoryDeleteError : public DirectoryError |
---|
45 | { DirectoryDeleteError(const std::string& s) : DirectoryError(s) {} }; |
---|
46 | |
---|
47 | void rmdirhier(const std::string& path); |
---|
48 | |
---|
49 | }} // of namespace svndigest and namespace theplu |
---|
50 | |
---|
51 | #endif |
---|