source: trunk/lib/rmdirhier.h @ 693

Last change on this file since 693 was 693, checked in by Jari Häkkinen, 13 years ago

Fixes #339. Change to GPLv3.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
RevLine 
[165]1#ifndef _theplu_svndigest_rmdirhier_
2#define _theplu_svndigest_rmdirhier_
3
[49]4// $Id: rmdirhier.h 693 2008-09-11 20:42:56Z jari $
5
[84]6/*
[408]7  Copyright (C) 2006 Jari Häkkinen, Peter Johansson
[492]8  Copyright (C) 2007 Peter Johansson
[84]9
[687]10  This file is part of svndigest, http://dev.thep.lu.se/svndigest
[84]11
[149]12  svndigest is free software; you can redistribute it and/or modify it
[84]13  under the terms of the GNU General Public License as published by
[693]14  the Free Software Foundation; either version 3 of the License, or
[84]15  (at your option) any later version.
16
[149]17  svndigest is distributed in the hope that it will be useful, but
[84]18  WITHOUT ANY WARRANTY; without even the implied warranty of
[149]19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[84]20  General Public License for more details.
21
22  You should have received a copy of the GNU General Public License
[693]23  along with svndigest. If not, see <http://www.gnu.org/licenses/>.
[84]24*/
25
[49]26#include <stdexcept>
27#include <string>
28
29namespace theplu {
[149]30namespace svndigest {
[49]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
[50]47  void rmdirhier(const std::string& path);
[49]48
[149]49}} // of namespace svndigest and namespace theplu
[49]50
51#endif
Note: See TracBrowser for help on using the repository browser.