Menu

[r10]: / trunk / client.cpp  Maximize  Restore  History

Download this file

59 lines (51 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* ====================================================================
* Copyright (c) 2002-2005 The RapidSvn Group. All rights reserved.
*
* This software is licensed as described in the file LICENSE.txt,
* which you should have received as part of this distribution.
*
* This software consists of voluntary contributions made by many
* individuals. For exact contribution history, see the revision
* history and logs, available at http://rapidsvn.tigris.org/.
* ====================================================================
*/
#if defined( _MSC_VER) && _MSC_VER <= 1200
#pragma warning( disable: 4786 )// debug symbol truncated
#endif
// subcpp
#include "client.hpp"
namespace svn
{
Client::Client( Context * context )
:
m_context( NULL )
{
SetContext( context );
}
Client::~Client()
{
delete m_context;
}
const Context * Client::GetContext() const
{
return m_context;
}
void Client::SetContext( Context * context )
{
Context* oldContext = m_context;
m_context = context;
if( oldContext != NULL )
{
delete oldContext;
}
}
void Client::ReleaseWorkingCopyLock()
{
svn_error_t* error = m_context->ReleaseWorkingCopyLock();
if ( error != NULL )
{
throw ClientException( error );
}
}
}
MongoDB Logo MongoDB