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 "svncpp/pool.hpp"
00022 
00023 
00024 namespace svn
00025 {
00030   class Entry
00031   {
00032   public:
00043     Entry (const svn_wc_entry_t * src = 0);
00044 
00048     Entry (const Entry & src);
00049 
00053     virtual ~Entry ();
00054 
00063     bool isValid () const
00064     {
00065       return m_valid;
00066     }
00067 
00071     const char *
00072     name () const
00073     {
00074       return m_entry->name;
00075     }
00076 
00080     const svn_revnum_t 
00081     revision () const
00082     {
00083       return m_entry->revision;
00084     }
00085 
00089     const char * 
00090     url () const
00091     {
00092       return m_entry->url;
00093     }
00094 
00098     const char *
00099     repos () const
00100     {
00101       return m_entry->repos;
00102     }
00103 
00107     const char *
00108     uuid () const
00109     {
00110       return m_entry->uuid;
00111     }
00112 
00116     const svn_node_kind_t
00117     kind () const
00118     {
00119       return m_entry->kind;
00120     }
00121 
00125     const svn_wc_schedule_t
00126     schedule () const
00127     {
00128       return m_entry->schedule;
00129     }
00130 
00134     const bool 
00135     isCopied () const
00136     {
00137       return m_entry->copied != 0;
00138     }
00139     
00143     const bool
00144     isDeleted () const
00145     {
00146       return m_entry->deleted != 0;
00147     }
00148 
00152     const bool
00153     isAbsent () const
00154     {
00155       return m_entry->absent != 0;
00156     }
00157 
00161     const char *
00162     copyfromUrl () const
00163     {
00164       return m_entry->copyfrom_url;
00165     }
00166 
00170     const svn_revnum_t
00171     copyfromRev () const
00172     {
00173       return m_entry->copyfrom_rev;
00174     }
00175 
00179     const char *
00180     conflictOld () const
00181     {
00182       return m_entry->conflict_old;
00183     }
00184 
00188     const char *
00189     conflictNew () const
00190     {
00191       return m_entry->conflict_new;
00192     }
00193     
00197     const char *
00198     conflictWrk () const
00199     {
00200       return m_entry->conflict_wrk;
00201     }
00202 
00206     const char *
00207     prejfile () const
00208     {
00209       return m_entry->prejfile;
00210     }
00211 
00216     const apr_time_t
00217     textTime () const
00218     {
00219       return m_entry->text_time;
00220     }
00221     
00226     const apr_time_t
00227     propTime () const
00228     {
00229       return m_entry->prop_time;
00230     }
00231 
00236     const char *
00237     checksum () const
00238     {
00239       return m_entry->checksum;
00240     }
00241 
00245     const svn_revnum_t
00246     cmtRev () const
00247     {
00248       return m_entry->cmt_rev;
00249     }
00250 
00254     const apr_time_t
00255     cmtDate () const
00256     {
00257       return m_entry->cmt_date;
00258     }
00259 
00263     const char *
00264     cmtAuthor () const
00265     {
00266       return m_entry->cmt_author;
00267     }
00268 
00272     operator svn_wc_entry_t * () const
00273     {
00274       return m_entry;
00275     }
00276 
00280     Entry &
00281     operator = (const Entry &);
00282 
00283   private:
00284     svn_wc_entry_t * m_entry;
00285     Pool m_pool;
00286     bool m_valid;
00287 
00291     void 
00292     init (const svn_wc_entry_t * src);
00293  };
00294 
00295 }
00296 
00297 #endif
00298 /* -----------------------------------------------------------------
00299  * local variables:
00300  * eval: (load-file "../../rapidsvn-dev.el")
00301  * end:
00302  */

Generated on Mon Feb 2 23:06:01 2004 for SvnCpp by doxygen 1.3.4