00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
#ifndef _SVNCPP_REVISION_HPP_
00015
#define _SVNCPP_REVISION_HPP_
00016
00017
00018
#include "svn_types.h"
00019
#include "svn_opt.h"
00020
00021
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
00116
00117
00118