SvnCpp
status.hpp
Go to the documentation of this file.
1 /*
2  * ====================================================================
3  * Copyright (c) 2002-2018 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 Lesser General Public License as
7  * published by the Free Software Foundation, either version 3 of the
8  * License, or (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 Lesser General Public
16  * License along with this program (in the file LGPL.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 
160  svn_revnum_t
161  oodLastCmtRev() const;
162 
166  apr_time_t
167  oodLastCmtDate() const;
168 
173  svn_node_kind_t
174  oodKind() const;
175 
183  const char *
184  oodLastCmtAuthor() const;
185 
189  Status &
190  operator = (const Status &);
191 
202  bool
203  isSet() const;
204 
205  private:
206  struct Data;
207  Data * m;
208  };
209 
210  typedef std::vector<Status> StatusVector;
211 }
212 
213 #endif
214 /* -----------------------------------------------------------------
215  * local variables:
216  * eval: (load-file "../../rapidsvn-dev.el")
217  * end:
218  */
svn::Status::isSet
bool isSet() const
svn::Status::oodKind
svn_node_kind_t oodKind() const
svn::Status::entry
const Entry entry() const
svn::Status::operator=
Status & operator=(const Status &)
svn::Status::isCopied
bool isCopied() const
svn::Status::isVersioned
bool isVersioned() const
svn::Status::reposTextStatus
svn_wc_status_kind reposTextStatus() const
svn::Status::lockOwner
const char * lockOwner() const
svn::Entry
Definition: entry.hpp:40
svn::Status::oodLastCmtDate
apr_time_t oodLastCmtDate() const
svn::Status::lockComment
const char * lockComment() const
pool.hpp
svn::Status::Status
Status(const char *path=0, const svn_wc_status2_t *status=0)
svn::Status::textStatus
svn_wc_status_kind textStatus() const
svn::Status::lockToken
const char * lockToken() const
svn::Status::~Status
~Status()
svn::Status::isLocked
bool isLocked() const
svn::Status::oodLastCmtRev
svn_revnum_t oodLastCmtRev() const
svn::Status::propStatus
svn_wc_status_kind propStatus() const
svn::Status::path
const char * path() const
entry.hpp
svn
Definition: annotate_line.hpp:31
svn::Status
Definition: status.hpp:44
svn::Status::isSwitched
bool isSwitched() const
svn::Status::reposPropStatus
svn_wc_status_kind reposPropStatus() const
svn::StatusVector
std::vector< Status > StatusVector
Definition: status.hpp:210
svn::Status::lockCreationDate
apr_time_t lockCreationDate() const
svn::Status::isRepLock
bool isRepLock() const
svn::Status::oodLastCmtAuthor
const char * oodLastCmtAuthor() const
vector_wrapper.hpp