11 #include "support/syscall.h"
28 virtual void scanMaster() = 0;
30 virtual void registrer(string const & msg) = 0;
32 virtual void checkIn(string const & msg) = 0;
34 virtual void checkOut() = 0;
36 virtual void revert() = 0;
38 virtual void undoLast() = 0;
40 virtual void getLog(string const &) = 0;
42 string const & version() const { return version_; }
44 string const & locker() const { return locker_; }
46 void owner(Buffer * b) { owner_ = b; }
48 Buffer * owner() const { return owner_; }
50 VCStatus status() const { return vcstatus; }
53 static int doVCCommand(string const &, string const &);
55 /** The master VC file. For RCS this is *,v or RCS/ *,v. master should
60 /// The status of the VC controlled file.
63 /** The version of the VC file. I am not sure if this can be a
64 string of if it must be a
68 /// The user currently keeping the lock on the VC file.
70 /// The buffer using this VC
76 class RCS : public VCS {
80 RCS(string const & m);
82 static string const find_file(string const & file);
84 static void retrive(string const & file);
86 virtual void scanMaster();
88 virtual void registrer(string const & msg);
90 virtual void checkIn(string const & msg);
92 virtual void checkOut();
94 virtual void revert();
96 virtual void undoLast();
98 virtual void getLog(string const &);
103 class CVS : public VCS {
107 CVS(string const & m, string const & f);
109 static string const find_file(string const & file);
111 virtual void scanMaster();
113 virtual void registrer(string const & msg);
115 virtual void checkIn(string const & msg);
117 virtual void checkOut();
119 virtual void revert();
121 virtual void undoLast();
123 virtual void getLog(string const &);