1 |
douglas |
697 |
// Subversion Client |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// $Id$ |
6 |
|
|
|
7 |
|
|
#ifndef _Subversion_Client_hpp_ |
8 |
|
|
#define _Subversion_Client_hpp_ |
9 |
|
|
|
10 |
|
|
#include <cxx/platform.hpp> |
11 |
|
|
|
12 |
|
|
#ifdef MENES_PRAGMA_ONCE |
13 |
|
|
#pragma once |
14 |
|
|
#endif |
15 |
|
|
|
16 |
|
|
#include <api/apr/pool.hpp> |
17 |
|
|
|
18 |
|
|
#include <subversion-1/svn_client.h> |
19 |
|
|
#include <subversion-1/svn_props.h> |
20 |
|
|
|
21 |
douglas |
701 |
#include "Entry.hpp" |
22 |
douglas |
698 |
#include "Error.hpp" |
23 |
|
|
|
24 |
douglas |
697 |
namespace Subversion |
25 |
|
|
{ |
26 |
|
|
|
27 |
|
|
class Client |
28 |
|
|
{ |
29 |
douglas |
708 |
api::Apr::Pool pool; |
30 |
douglas |
697 |
::svn_client_ctx_t *context; |
31 |
|
|
public: |
32 |
|
|
Client(); |
33 |
douglas |
701 |
cse::String GetProperty(const cse::String &property, const cse::String &target) const; |
34 |
|
|
_L<Entry> GetEntries(const cse::String &target) const; |
35 |
douglas |
712 |
inline void Update(const cse::String &path) { Update(_L<cse::String>(1, path)); } |
36 |
|
|
void Update(const _L<cse::String> &paths); |
37 |
douglas |
697 |
}; |
38 |
|
|
|
39 |
|
|
} |
40 |
|
|
|
41 |
|
|
#endif//_Subversion_Client_hpp_ |