// -*- C++ -*-
/**
* \file vc-backend.h
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS.
*/
-
#ifndef VC_BACKEND_H
#define VC_BACKEND_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "LString.h"
+#include "support/std_string.h"
class Buffer;
/**
* getLog - read the revision log into the given file
* @param fname file name to read into
- */
+ */
virtual void getLog(string const &) = 0;
/// return the current version description
virtual string const versionString() const = 0;
/// return the current version
string const & version() const {
- return version_;
+ return version_;
}
/// return the user who has locked the file
string const & locker() const { return locker_; }
protected:
/// parse information from the version file
virtual void scanMaster() = 0;
-
+
/**
* doVCCommand - call out to the version control utility
* @param cmd the command to execute
*/
static int doVCCommand(string const & cmd, string const & path);
- /**
+ /**
* The master VC file. For RCS this is *,v or RCS/ *,v. master should
* have full path.
*/
string master_;
-
+
/// The status of the VC controlled file.
VCStatus vcstatus;
-
- /**
+
+ /**
* The version of the VC file. I am not sure if this can be a
- * string or if it must be a float/int.
+ * string or if it must be a float/int.
*/
string version_;
-
+
/// The user currently keeping the lock on the VC file.
string locker_;
/// The buffer using this VC
protected:
virtual void scanMaster();
-
+
private:
string file_;
};