Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Namespace Members | Data Fields | Globals

entry.hpp

Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002, 2003 The RapidSvn Group.  All rights reserved.
00004  *
00005  * This software is licensed as described in the file LICENSE.txt,
00006  * which you should have received as part of this distribution.
00007  *
00008  * This software consists of voluntary contributions made by many
00009  * individuals.  For exact contribution history, see the revision
00010  * history and logs, available at http://rapidsvn.tigris.org/.
00011  * ====================================================================
00012  * @file entry.hpp
00013  */
00014 #ifndef _SVNCPP_ENTRY_HPP_
00015 #define _SVNCPP_ENTRY_HPP_
00016 
00017 // subversion api
00018 #include "svn_wc.h"
00019 
00020 // svncpp
00021 #include "pool.hpp"
00022 
00023 namespace svn
00024 {
00029   class Entry
00030   {
00031   public:
00042     Entry (const svn_wc_entry_t * src = 0);
00043 
00047     Entry (const Entry & src);
00048 
00052     virtual ~Entry ();
00053 
00062     bool isValid () const
00063     {
00064       return m_valid;
00065     }
00066 
00070     const char *
00071     name () const
00072     {
00073       return m_entry->name;
00074     }
00075 
00079     const svn_revnum_t 
00080     revision () const
00081     {
00082       return m_entry->revision;
00083     }
00084 
00088     const char * 
00089     url () const
00090     {
00091       return m_entry->url;
00092     }
00093 
00097     const char *
00098     repos () const
00099     {
00100       return m_entry->repos;
00101     }
00102 
00106     const char *
00107     uuid () const
00108     {
00109       return m_entry->uuid;
00110     }
00111 
00115     const svn_node_kind_t
00116     kind () const
00117     {
00118       return m_entry->kind;
00119     }
00120 
00124     const svn_wc_schedule_t
00125     schedule () const
00126     {
00127       return m_entry->schedule;
00128     }
00129 
00133     const bool 
00134     isCopied () const
00135     {
00136       return m_entry->copied != 0;
00137     }
00138     
00142     const bool
00143     isDeleted () const
00144     {
00145       return m_entry->deleted != 0;
00146     }
00147 
00151     const char *
00152     copyfromUrl () const
00153     {
00154       return m_entry->copyfrom_url;
00155     }
00156 
00160     const svn_revnum_t
00161     copyfromRev () const
00162     {
00163       return m_entry->copyfrom_rev;
00164     }
00165 
00169     const char *
00170     conflictOld () const
00171     {
00172       return m_entry->conflict_old;
00173     }
00174 
00178     const char *
00179     conflictNew () const
00180     {
00181       return m_entry->conflict_new;
00182     }
00183     
00187     const char *
00188     conflictWrk () const
00189     {
00190       return m_entry->conflict_wrk;
00191     }
00192 
00196     const char *
00197     prejfile () const
00198     {
00199       return m_entry->prejfile;
00200     }
00201 
00206     const apr_time_t
00207     textTime () const
00208     {
00209       return m_entry->text_time;
00210     }
00211     
00216     const apr_time_t
00217     propTime () const
00218     {
00219       return m_entry->prop_time;
00220     }
00221 
00226     const char *
00227     checksum () const
00228     {
00229       return m_entry->checksum;
00230     }
00231 
00235     const svn_revnum_t
00236     cmtRev () const
00237     {
00238       return m_entry->cmt_rev;
00239     }
00240 
00244     const apr_time_t
00245     cmtDate () const
00246     {
00247       return m_entry->cmt_date;
00248     }
00249 
00253     const char *
00254     cmtAuthor () const
00255     {
00256       return m_entry->cmt_author;
00257     }
00258 
00262     operator svn_wc_entry_t * () const
00263     {
00264       return m_entry;
00265     }
00266 
00270     Entry &
00271     operator = (const Entry &);
00272 
00273   private:
00274     svn_wc_entry_t * m_entry;
00275     Pool m_pool;
00276     bool m_valid;
00277 
00281     void 
00282     init (const svn_wc_entry_t * src);
00283  };
00284 
00285 }
00286 
00287 #endif
00288 /* -----------------------------------------------------------------
00289  * local variables:
00290  * eval: (load-file "../../rapidsvn-dev.el")
00291  * end:
00292  */

Generated on Sat Dec 6 22:47:47 2003 for SvnCpp by doxygen 1.3.4