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

revision.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  */
00013 
00014 #ifndef _SVNCPP_REVISION_HPP_
00015 #define _SVNCPP_REVISION_HPP_ 
00016 
00017 // subversion includes
00018 #include "svn_types.h"
00019 #include "svn_opt.h"
00020 
00021 namespace svn
00022 {
00028   class Revision
00029   {
00030   private:
00031     svn_opt_revision_t m_revision;
00032 
00033     void
00034     init (const svn_opt_revision_t * revision);
00035 
00036   public:
00037     static const svn_opt_revision_kind START;
00038     static const svn_opt_revision_kind HEAD;
00039 
00045     Revision (const svn_opt_revision_t * revision);
00046 
00052     Revision (const svn_revnum_t revnum);
00053 
00059     Revision (const svn_opt_revision_kind kind = svn_opt_revision_unspecified);
00060 
00066     Revision (const apr_time_t date);
00067 
00073     Revision (const Revision & revision);
00074 
00078     const svn_opt_revision_t *
00079     revision () const;
00080 
00085     operator svn_opt_revision_t * ()
00086     {
00087       return &m_revision;
00088     }
00089 
00093     const svn_revnum_t 
00094     revnum () const;
00095 
00099     const svn_opt_revision_kind 
00100     kind () const;
00101 
00105     const apr_time_t
00106     date () const;
00107   };
00108 }
00109 
00110 #endif
00111 /* -----------------------------------------------------------------
00112  * local variables:
00113  * eval: (load-file "../../rapidsvn-dev.el")
00114  * end:
00115  */

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