mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-21 15:18:45 +00:00
0eccdd1c36
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@162 a592a061-630c-0410-9148-cb99ea01b6c8
64 lines
1.2 KiB
C++
64 lines
1.2 KiB
C++
// -*- C++ -*-
|
|
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
* Copyright (C) 1995 Matthias Ettrich
|
|
*
|
|
* This file is Copyright (C) 1996-1998
|
|
* Lars Gullik Bjønnes
|
|
*
|
|
* ======================================================
|
|
*/
|
|
|
|
#ifndef DEP_TABLE_H
|
|
#define DEP_TABLE_H
|
|
|
|
#include "LString.h"
|
|
#include <cstdio>
|
|
|
|
///
|
|
class DepTable {
|
|
public:
|
|
///
|
|
DepTable();
|
|
///
|
|
/** This one is a little bit harder since we need the absolute
|
|
filename. Should we insert files with .sty .cls etc as
|
|
extension? */
|
|
void insert(string const &f,
|
|
bool upd = false,
|
|
unsigned long one = 0,
|
|
unsigned long two = 0);
|
|
///
|
|
void update();
|
|
|
|
///
|
|
void write(string const &f);
|
|
///
|
|
void read(string const &f);
|
|
/// returns true if any of the files has changed
|
|
bool sumchange();
|
|
///
|
|
bool haschanged(string const &fil);
|
|
private:
|
|
///
|
|
DepTable(string const &f,
|
|
bool upd,
|
|
unsigned long one,
|
|
unsigned long two);
|
|
///
|
|
string file;
|
|
/// The files new checksum
|
|
unsigned long new_sum;
|
|
/// The files old checksum
|
|
unsigned long old_sum;
|
|
///
|
|
DepTable *next;
|
|
|
|
///
|
|
void write(FILE *f);
|
|
};
|
|
|
|
#endif
|