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

revision.hpp

Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002-2004 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  */
00013 
00014 #ifndef _SVNCPP_REVISION_HPP_
00015 #define _SVNCPP_REVISION_HPP_ 
00016 
00017 // subversion api
00018 #include "svn_types.h"
00019 #include "svn_opt.h"
00020 
00021 // svncpp
00022 #include "datetime.hpp"
00023 
00024 namespace svn
00025 {
00031   class Revision
00032   {
00033   private:
00034     svn_opt_revision_t m_revision;
00035 
00036     void
00037     init (const svn_opt_revision_t * revision);
00038 
00039   public:
00040     static const svn_opt_revision_kind START;
00041     static const svn_opt_revision_kind BASE;
00042     static const svn_opt_revision_kind HEAD;
00043 
00049     Revision (const svn_opt_revision_t * revision);
00050 
00056     Revision (const svn_revnum_t revnum);
00057 
00063     Revision (const svn_opt_revision_kind kind = svn_opt_revision_unspecified);
00064 
00070     Revision (const DateTime dateTime);
00071 
00077     Revision (const Revision & revision);
00078 
00082     const svn_opt_revision_t *
00083     revision () const;
00084 
00089     operator svn_opt_revision_t * ()
00090     {
00091       return &m_revision;
00092     }
00093 
00097     const svn_revnum_t 
00098     revnum () const;
00099 
00103     const svn_opt_revision_kind 
00104     kind () const;
00105 
00109     const apr_time_t
00110     date () const;
00111   };
00112 }
00113 
00114 #endif
00115 /* -----------------------------------------------------------------
00116  * local variables:
00117  * eval: (load-file "../../rapidsvn-dev.el")
00118  * end:
00119  */

Generated on Sun Sep 18 02:32:51 2005 for SvnCpp by  doxygen 1.4.4