SvnCpp
|
00001 /* 00002 * ==================================================================== 00003 * Copyright (c) 2002-2009 The RapidSvn Group. All rights reserved. 00004 * 00005 * This program is free software: you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation, either version 3 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program (in the file GPL.txt. 00017 * If not, see <http://www.gnu.org/licenses/>. 00018 * 00019 * This software consists of voluntary contributions made by many 00020 * individuals. For exact contribution history, see the revision 00021 * history and logs, available at http://rapidsvn.tigris.org/. 00022 * ==================================================================== 00023 */ 00024 #ifndef _SVNCPP_STATUS_HPP_ 00025 #define _SVNCPP_STATUS_HPP_ 00026 00027 // subversion api 00028 #include "svn_wc.h" 00029 00030 // svncpp 00031 #include "svncpp/entry.hpp" 00032 #include "svncpp/pool.hpp" 00033 00034 // stl 00035 #include "svncpp/vector_wrapper.hpp" 00036 00037 namespace svn 00038 { 00044 class Status 00045 { 00046 public: 00053 Status(const char * path = 0, const svn_wc_status2_t * status = 0); 00054 00058 Status(const Status & src); 00059 00063 ~Status(); 00064 00068 const char * 00069 path() const; 00070 00075 const Entry 00076 entry() const; 00077 00081 svn_wc_status_kind 00082 textStatus() const; 00083 00087 svn_wc_status_kind 00088 propStatus() const; 00089 00093 bool 00094 isVersioned() const; 00095 00099 bool 00100 isCopied() const; 00101 00105 bool 00106 isSwitched() const; 00107 00111 svn_wc_status_kind 00112 reposTextStatus() const; 00113 00117 svn_wc_status_kind 00118 reposPropStatus() const; 00119 00123 bool 00124 isLocked() const; 00125 00129 bool 00130 isRepLock() const; 00131 00135 const char * 00136 lockToken() const; 00137 00141 const char * 00142 lockOwner() const; 00143 00147 const char * 00148 lockComment() const; 00149 00153 apr_time_t 00154 lockCreationDate() const; 00155 00159 Status & 00160 operator = (const Status &); 00161 00172 bool 00173 isSet() const; 00174 00175 private: 00176 struct Data; 00177 Data * m; 00178 }; 00179 00180 typedef std::vector<Status> StatusVector; 00181 } 00182 00183 #endif 00184 /* ----------------------------------------------------------------- 00185 * local variables: 00186 * eval: (load-file "../../rapidsvn-dev.el") 00187 * end: 00188 */