GME  13
Revision.cpp
Go to the documentation of this file.
00001 
00024 #include "../StdAfx.h"
00025 
00026 #if(USESVN)
00027 
00028 #include "Revision.h"
00029 
00030 const svn_opt_revision_kind Revision::START = svn_opt_revision_unspecified;
00031 const svn_opt_revision_kind Revision::HEAD  = svn_opt_revision_head;
00032 
00033 Revision::Revision()
00034 {
00035         m_revision.value.number = 0;
00036         m_revision.kind = svn_opt_revision_head;
00037 }
00038 
00039 Revision::Revision( bool p_head /* = false */, bool p_one /* = false */)
00040 {
00041         m_revision.kind = svn_opt_revision_unspecified;
00042         m_revision.value.number = 0;
00043 
00044         if( p_head)
00045                 m_revision.kind = svn_opt_revision_head;
00046         else if( p_one)
00047         {
00048                 m_revision.kind = svn_opt_revision_number;
00049                 m_revision.value.number = 1;
00050         }
00051 }
00052 
00053 Revision::Revision (const svn_opt_revision_kind p_kind)
00054 {
00055         m_revision.kind = p_kind;
00056         m_revision.value.number = 0;
00057 }
00058 
00059 Revision::~Revision()
00060 {
00061 }
00062 
00063 const svn_opt_revision_t *Revision::revision () const
00064 {
00065         return &m_revision;
00066 }
00067 
00068 #endif