SvnCpp
dirent.hpp
Go to the documentation of this file.
1 /*
2  * ====================================================================
3  * Copyright (c) 2002-2009 The RapidSvn Group. All rights reserved.
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program (in the file GPL.txt.
17  * If not, see <http://www.gnu.org/licenses/>.
18  *
19  * This software consists of voluntary contributions made by many
20  * individuals. For exact contribution history, see the revision
21  * history and logs, available at http://rapidsvn.tigris.org/.
22  * ====================================================================
23  */
24 
25 #ifndef _SVNCPP_DIRENT_HPP_
26 #define _SVNCPP_DIRENT_HPP_
27 
28 // subversion api
29 #include "svn_client.h"
30 
31 namespace svn
32 {
33  class DirEntry
34  {
35  public:
39  DirEntry();
40 
44  DirEntry(const char * name, svn_dirent_t * dirEntry);
45 
49  DirEntry(const DirEntry & src);
50 
54  ~DirEntry();
55 
59  DirEntry &
60  operator = (const DirEntry &);
61 
62  const char *
63  name() const;
64 
65  svn_node_kind_t
66  kind() const;
67 
68  svn_filesize_t
69  size() const;
70 
71  bool
72  hasProps() const;
73 
74  svn_revnum_t
75  createdRev() const;
76 
77  apr_time_t
78  time() const;
79 
80  const char *
81  lastAuthor() const;
82 
83  private:
84  struct Data;
85  Data * m;
86  };
87 }
88 #endif
89 /* -----------------------------------------------------------------
90  * local variables:
91  * eval: (load-file "../../rapidsvn-dev.el")
92  * end:
93  */