#ifndef VC_BACKEND_H
#define VC_BACKEND_H
-#include "support/filename.h"
+#include "support/FileName.h"
#include <string>
virtual void registrer(std::string const & msg) = 0;
/// check in the current revision
virtual void checkIn(std::string const & msg) = 0;
+ // can be this operation processed in the current RCS?
+ virtual bool checkInEnabled() = 0;
/// check out for editing
virtual void checkOut() = 0;
+ // can be this operation processed in the current RCS?
+ virtual bool checkOutEnabled() = 0;
/// revert current edits
virtual void revert() = 0;
/// FIXME
virtual void undoLast() = 0;
+ // can be this operation processed in the current RCS?
+ virtual bool undoLastEnabled() = 0;
/**
* getLog - read the revision log into the given file
* @param fname file name to read into
/// return the current version description
virtual std::string const versionString() const = 0;
/// return the current version
- std::string const & version() const {
- return version_;
- }
+ std::string const & version() const { return version_; }
/// return the user who has locked the file
std::string const & locker() const { return locker_; }
/// set the owning buffer
RCS(support::FileName const & m);
/// return the revision file for the given file, if found
- static support::FileName const find_file(support::FileName const & file);
+ static support::FileName const findFile(support::FileName const & file);
static void retrieve(support::FileName const & file);
virtual void checkIn(std::string const & msg);
+ virtual bool checkInEnabled();
+
virtual void checkOut();
+ virtual bool checkOutEnabled();
+
virtual void revert();
virtual void undoLast();
+ virtual bool undoLastEnabled();
+
virtual void getLog(support::FileName const &);
virtual std::string const versionString() const {
CVS(support::FileName const & m, support::FileName const & f);
/// return the revision file for the given file, if found
- static support::FileName const find_file(support::FileName const & file);
+ static support::FileName const findFile(support::FileName const & file);
virtual void registrer(std::string const & msg);
virtual void checkIn(std::string const & msg);
+ virtual bool checkInEnabled();
+
virtual void checkOut();
+ virtual bool checkOutEnabled();
+
virtual void revert();
virtual void undoLast();
+ virtual bool undoLastEnabled();
+
virtual void getLog(support::FileName const &);
virtual std::string const versionString() const {