SvnCpp
status.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_STATUS_HPP_
25 #define _SVNCPP_STATUS_HPP_
26 
27 // subversion api
28 #include "svn_wc.h"
29 
30 // svncpp
31 #include "svncpp/entry.hpp"
32 #include "svncpp/pool.hpp"
33 
34 // stl
36 
37 namespace svn
38 {
44  class Status
45  {
46  public:
53  Status(const char * path = 0, const svn_wc_status2_t * status = 0);
54 
58  Status(const Status & src);
59 
63  ~Status();
64 
68  const char *
69  path() const;
70 
75  const Entry
76  entry() const;
77 
81  svn_wc_status_kind
82  textStatus() const;
83 
87  svn_wc_status_kind
88  propStatus() const;
89 
93  bool
94  isVersioned() const;
95 
99  bool
100  isCopied() const;
101 
105  bool
106  isSwitched() const;
107 
111  svn_wc_status_kind
112  reposTextStatus() const;
113 
117  svn_wc_status_kind
118  reposPropStatus() const;
119 
123  bool
124  isLocked() const;
125 
129  bool
130  isRepLock() const;
131 
135  const char *
136  lockToken() const;
137 
141  const char *
142  lockOwner() const;
143 
147  const char *
148  lockComment() const;
149 
153  apr_time_t
154  lockCreationDate() const;
155 
159  Status &
160  operator = (const Status &);
161 
172  bool
173  isSet() const;
174 
175  private:
176  struct Data;
177  Data * m;
178  };
179 
180  typedef std::vector<Status> StatusVector;
181 }
182 
183 #endif
184 /* -----------------------------------------------------------------
185  * local variables:
186  * eval: (load-file "../../rapidsvn-dev.el")
187  * end:
188  */