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 api
00018 #include "svn_types.h"
00019 #include "svn_opt.h"
00020 
00021 
00022 namespace svn
00023 {
00029   class Revision
00030   {
00031   private:
00032     svn_opt_revision_t m_revision;
00033 
00034     void
00035     init (const svn_opt_revision_t * revision);
00036 
00037   public:
00038     static const svn_opt_revision_kind START;
00039     static const svn_opt_revision_kind HEAD;
00040 
00046     Revision (const svn_opt_revision_t * revision);
00047 
00053     Revision (const svn_revnum_t revnum);
00054 
00060     Revision (const svn_opt_revision_kind kind = svn_opt_revision_unspecified);
00061 
00067     Revision (const apr_time_t date);
00068 
00074     Revision (const Revision & revision);
00075 
00079     const svn_opt_revision_t *
00080     revision () const;
00081 
00086     operator svn_opt_revision_t * ()
00087     {
00088       return &m_revision;
00089     }
00090 
00094     const svn_revnum_t 
00095     revnum () const;
00096 
00100     const svn_opt_revision_kind 
00101     kind () const;
00102 
00106     const apr_time_t
00107     date () const;
00108   };
00109 }
00110 
00111 #endif
00112 /* -----------------------------------------------------------------
00113  * local variables:
00114  * eval: (load-file "../../rapidsvn-dev.el")
00115  * end:
00116  */

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