1 | #ifndef _theplu_svndigest_rmdirhier_ |
---|
2 | #define _theplu_svndigest_rmdirhier_ |
---|
3 | |
---|
4 | // $Id: rmdirhier.h 489 2007-10-13 23:16:02Z peter $ |
---|
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://trac.thep.lu.se/trac/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 2 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 this program; if not, write to the Free Software |
---|
24 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
25 | 02111-1307, USA. |
---|
26 | */ |
---|
27 | |
---|
28 | #include <stdexcept> |
---|
29 | #include <string> |
---|
30 | |
---|
31 | namespace theplu { |
---|
32 | namespace svndigest { |
---|
33 | |
---|
34 | struct DirectoryError : public std::runtime_error |
---|
35 | { inline DirectoryError(const std::string& s) : runtime_error(s) {} }; |
---|
36 | |
---|
37 | struct BadDirectory : public DirectoryError |
---|
38 | { inline BadDirectory(const std::string& s) : DirectoryError(s) {} }; |
---|
39 | |
---|
40 | struct DirectoryOpenError : public DirectoryError |
---|
41 | { inline DirectoryOpenError(const std::string& s) : DirectoryError(s) {} }; |
---|
42 | |
---|
43 | struct FileDeleteError : public DirectoryError |
---|
44 | { FileDeleteError(const std::string& s) : DirectoryError(s) {} }; |
---|
45 | |
---|
46 | struct DirectoryDeleteError : public DirectoryError |
---|
47 | { DirectoryDeleteError(const std::string& s) : DirectoryError(s) {} }; |
---|
48 | |
---|
49 | void rmdirhier(const std::string& path); |
---|
50 | |
---|
51 | }} // of namespace svndigest and namespace theplu |
---|
52 | |
---|
53 | #endif |
---|