SvnCpp
info.hpp
Go to the documentation of this file.
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_INFO_HPP_
00025 #define _SVNCPP_INFO_HPP_
00026 
00027 // subversion api
00028 #include "svn_client.h"
00029 
00030 namespace svn
00031 {
00032   // forward declarations
00033   class Path;
00034 
00039   class Info
00040   {
00041   public:
00052     Info(const Path & path, const svn_info_t * src = 0);
00053 
00057     Info(const Info & src);
00058 
00062     virtual ~Info();
00063 
00067     Info &
00068     operator = (const Info &);
00069 
00078     bool isValid() const;
00079 
00081     const Path &
00082     path() const;
00083 
00085     svn_revnum_t
00086     revision() const;
00087 
00089     const char *
00090     url() const;
00091 
00093     const char *
00094     repos() const;
00095 
00097     const char *
00098     uuid() const;
00099 
00101     svn_node_kind_t
00102     kind() const;
00103 
00104     svn_revnum_t
00105     lastChangedRev() const;
00106 
00107     apr_time_t
00108     lastChangedDate() const;
00109 
00110     const char *
00111     lastChangedAuthoer() const;
00112 
00115   private:
00116     struct Data;
00117 
00118     Data * m;
00119   };
00120 
00121 }
00122 
00123 #endif
00124 /* -----------------------------------------------------------------
00125  * local variables:
00126  * eval: (load-file "../../rapidsvn-dev.el")
00127  * end:
00128  */