#include "DepTable.h"
#include <vector>
+#include <boost/utility.hpp>
+
class MiniBuffer;
///
///
-class LaTeX {
+class LaTeX : public noncopyable {
public:
/** Return values from scanLogFile() and run() (to come)
-
- This enum should be enlarged a bit so that one could
- get more feedback from the LaTeX run.
- */
+
+ This enum should be enlarged a bit so that one could
+ get more feedback from the LaTeX run.
+ */
enum log_status {
///
NO_ERRORS = 0,
path = name of the files original path.
*/
LaTeX(string const & cmd, string const & file, string const & path);
+
+ ///
+ virtual ~LaTeX() {}
/// runs LaTeX several times
int run(TeXErrors &, MiniBuffer *);
/// use this for running LaTeX once
int operator() ();
+
+ ///
+ int scanLogFile(TeXErrors &);
+
protected:
/// The dependency file.
string depfile;
- /// unavail
- LaTeX(LaTeX const &);
- /// unavail
- LaTeX & operator= (LaTeX const &);
-
///
void deplog(DepTable & head);
- ///
- int scanLogFile(TeXErrors &);
-
///
bool runMakeIndex(string const &);
///
string path;
- // used by scanLogFile
+ /// used by scanLogFile
int num_errors;
};