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

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 HEAD;
00042 
00048     Revision (const svn_opt_revision_t * revision);
00049 
00055     Revision (const svn_revnum_t revnum);
00056 
00062     Revision (const svn_opt_revision_kind kind = svn_opt_revision_unspecified);
00063 
00069     Revision (const DateTime dateTime);
00070 
00076     Revision (const Revision & revision);
00077 
00081     const svn_opt_revision_t *
00082     revision () const;
00083 
00088     operator svn_opt_revision_t * ()
00089     {
00090       return &m_revision;
00091     }
00092 
00096     const svn_revnum_t 
00097     revnum () const;
00098 
00102     const svn_opt_revision_kind 
00103     kind () const;
00104 
00108     const apr_time_t
00109     date () const;
00110   };
00111 }
00112 
00113 #endif
00114 /* -----------------------------------------------------------------
00115  * local variables:
00116  * eval: (load-file "../../rapidsvn-dev.el")
00117  * end:
00118  */

Generated on Mon May 24 20:18:23 2004 for SvnCpp by doxygen 1.3.6-20040222