source: branches/0.8-stable/lib/rmdirhier.h @ 1199

Last change on this file since 1199 was 978, checked in by Peter Johansson, 11 years ago

refs #429. Convert copyright statements to UTF-8

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1#ifndef _theplu_svndigest_rmdirhier_
2#define _theplu_svndigest_rmdirhier_
3
4// $Id: rmdirhier.h 978 2009-12-12 20:09:41Z peter $
5
6/*
7  Copyright (C) 2006 Jari Häkkinen
8  Copyright (C) 2007, 2008 Jari Häkkinen, 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
29namespace theplu {
30namespace 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
Note: See TracBrowser for help on using the repository browser.