SvnCpp
info.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 #ifndef _SVNCPP_INFO_HPP_
25 #define _SVNCPP_INFO_HPP_
26 
27 // subversion api
28 #include "svn_client.h"
29 
30 namespace svn
31 {
32  // forward declarations
33  class Path;
34 
39  class Info
40  {
41  public:
52  Info(const Path & path, const svn_info_t * src = 0);
53 
57  Info(const Info & src);
58 
62  virtual ~Info();
63 
67  Info &
68  operator = (const Info &);
69 
78  bool isValid() const;
79 
81  const Path &
82  path() const;
83 
85  svn_revnum_t
86  revision() const;
87 
89  const char *
90  url() const;
91 
93  const char *
94  repos() const;
95 
97  const char *
98  uuid() const;
99 
101  svn_node_kind_t
102  kind() const;
103 
104  svn_revnum_t
105  lastChangedRev() const;
106 
107  apr_time_t
108  lastChangedDate() const;
109 
110  const char *
111  lastChangedAuthoer() const;
112 
115  private:
116  struct Data;
117 
118  Data * m;
119  };
120 
121 }
122 
123 #endif
124 /* -----------------------------------------------------------------
125  * local variables:
126  * eval: (load-file "../../rapidsvn-dev.el")
127  * end:
128  */
svn_revnum_t revision() const
Definition: path.hpp:37
Definition: annotate_line.hpp:31
Definition: info.hpp:39
const char * repos() const
apr_time_t lastChangedDate() const
svn_revnum_t lastChangedRev() const
bool isValid() const
Info(const Path &path, const svn_info_t *src=0)
virtual ~Info()
Info & operator=(const Info &)
const char * uuid() const
const char * lastChangedAuthoer() const
const char * url() const
svn_node_kind_t kind() const
const Path & path() const