1423 |
16 Dec 11 |
peter |
1 |
#ifndef _theplu_svndigest_directory_util_ |
1423 |
16 Dec 11 |
peter |
2 |
#define _theplu_svndigest_directory_util_ |
1423 |
16 Dec 11 |
peter |
3 |
|
1423 |
16 Dec 11 |
peter |
// $Id$ |
1423 |
16 Dec 11 |
peter |
5 |
|
1423 |
16 Dec 11 |
peter |
6 |
/* |
1423 |
16 Dec 11 |
peter |
Copyright (C) 2011 Peter Johansson |
1423 |
16 Dec 11 |
peter |
8 |
|
1423 |
16 Dec 11 |
peter |
This file is part of svndigest, http://dev.thep.lu.se/svndigest |
1423 |
16 Dec 11 |
peter |
10 |
|
1423 |
16 Dec 11 |
peter |
svndigest is free software; you can redistribute it and/or modify it |
1423 |
16 Dec 11 |
peter |
under the terms of the GNU General Public License as published by |
1423 |
16 Dec 11 |
peter |
the Free Software Foundation; either version 3 of the License, or |
1423 |
16 Dec 11 |
peter |
(at your option) any later version. |
1423 |
16 Dec 11 |
peter |
15 |
|
1423 |
16 Dec 11 |
peter |
svndigest is distributed in the hope that it will be useful, but |
1423 |
16 Dec 11 |
peter |
WITHOUT ANY WARRANTY; without even the implied warranty of |
1423 |
16 Dec 11 |
peter |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1423 |
16 Dec 11 |
peter |
General Public License for more details. |
1423 |
16 Dec 11 |
peter |
20 |
|
1423 |
16 Dec 11 |
peter |
You should have received a copy of the GNU General Public License |
1423 |
16 Dec 11 |
peter |
along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
1423 |
16 Dec 11 |
peter |
23 |
*/ |
1423 |
16 Dec 11 |
peter |
24 |
|
1423 |
16 Dec 11 |
peter |
25 |
#include "yat/FileUtil.h" |
1423 |
16 Dec 11 |
peter |
26 |
|
1423 |
16 Dec 11 |
peter |
27 |
#include <string> |
1423 |
16 Dec 11 |
peter |
28 |
#include <vector> |
1423 |
16 Dec 11 |
peter |
29 |
|
1423 |
16 Dec 11 |
peter |
30 |
namespace theplu { |
1423 |
16 Dec 11 |
peter |
31 |
namespace svndigest { |
1423 |
16 Dec 11 |
peter |
32 |
|
1423 |
16 Dec 11 |
peter |
33 |
/** |
1423 |
16 Dec 11 |
peter |
34 |
*/ |
1423 |
16 Dec 11 |
peter |
35 |
class DirectoryUtil |
1423 |
16 Dec 11 |
peter |
36 |
{ |
1423 |
16 Dec 11 |
peter |
37 |
public: |
1423 |
16 Dec 11 |
peter |
38 |
DirectoryUtil(const std::string& path); |
1423 |
16 Dec 11 |
peter |
39 |
typedef |
1423 |
16 Dec 11 |
peter |
40 |
std::vector<yat::utility::FileUtil>::const_iterator const_iterator; |
1423 |
16 Dec 11 |
peter |
41 |
const_iterator begin(void) const; |
1423 |
16 Dec 11 |
peter |
42 |
bool empty(void) const; |
1423 |
16 Dec 11 |
peter |
43 |
const_iterator end(void) const; |
1423 |
16 Dec 11 |
peter |
44 |
private: |
1423 |
16 Dec 11 |
peter |
45 |
std::vector<yat::utility::FileUtil> entries_; |
1423 |
16 Dec 11 |
peter |
46 |
}; |
1423 |
16 Dec 11 |
peter |
47 |
|
1423 |
16 Dec 11 |
peter |
48 |
}} // end of namespace svndigest and namespace theplu |
1423 |
16 Dec 11 |
peter |
49 |
#endif |