OpendTect-6_4  6.4
svnaccess.h
Go to the documentation of this file.
1 #ifndef cvsaccess_h
2 #define cvsaccess_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Dec 2011
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 ;
15 
16 #include "networkmod.h"
17 #include "bufstring.h"
18 class BufferStringSet;
19 
20 
22 {
23 
24 public:
25 
26  SVNAccess(const char* dir);
27  virtual ~SVNAccess();
28  bool isOK() const;
29  const char* host() const { return host_; }
30 
31  // info
32  bool isInSVN(const char*) const;
33  void getEntries(const char* subdir,BufferStringSet&) const;
34  const char* reposDir() const { return reposdir_; }
35  void diff(const char* fnm,BufferString&) const;
36 
37  // changes locally
38  bool update(const char* fnm=0);
39  bool lock(const char*);
40  bool lock(const BufferStringSet&);
41 
42  // sets up for repos change
43  bool add(const char*);
44  bool add(const BufferStringSet&);
45 
46  // sets up for repos change and changes locally
47  bool rename(const char* subdir,const char* from,
48  const char* to);
49  bool changeFolder(const char* fnm,const char* fromsubdir,
50  const char* tosubdir);
51  bool remove(const char*);
52  bool remove(const BufferStringSet&);
53 
54  // changes repository
55  bool commit(const char* fnm,const char* msg=0);
56  bool commit(const BufferStringSet&,const char* msg=0);
57 
58 
59 protected:
60 
61  const bool havesvn_;
65 
66 };
67 
68 #endif
bool rename(const char *oldname, const char *newname)
#define mExpClass(module)
Definition: commondefs.h:160
T to(const F &fr)
Definition: convert.h:33
Definition: jobcommunic.h:24
const char * reposDir() const
Definition: svnaccess.h:34
Set of BufferString objects.
Definition: bufstringset.h:28
const char * host() const
Definition: svnaccess.h:29
const BufferString reposdir_
Definition: svnaccess.h:64
const BufferString dir_
Definition: svnaccess.h:62
BufferStringSet & add(const char *)
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
const BufferString host_
Definition: svnaccess.h:63
Definition: svnaccess.h:21
const bool havesvn_
Definition: svnaccess.h:61

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019