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