2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich
7 * Copyright 1995-2001 The LyX Team.
9 * This file is Copyright 1996-2001
13 * ======================================================
25 /** This one is a little bit harder since we need the absolute
26 filename. Should we insert files with .sty .cls etc as
28 void insert(string
const & f
, bool upd
= false);
33 void write(string
const & f
) const;
34 /// returns true if dep file was read successfully
35 bool read(string
const & f
);
36 /// returns true if any of the files has changed
37 bool sumchange() const;
38 /// return true if fil has changed.
39 bool haschanged(string
const & fil
) const;
40 /// return true if a file with extension ext has changed.
41 bool extchanged(string
const & ext
) const;
43 bool exist(string
const & fil
) const;
44 /// returns true if any files with ext exist
45 bool ext_exist(string
const & ext
) const;
47 void remove_files_with_extension(string
const &);
49 void remove_file(string
const &);
53 /// Previously calculated CRC value
54 unsigned long crc_prev
;
55 /// Current CRC value - only re-computed if mtime has changed.
56 unsigned long crc_cur
;
57 /// mtime from last time current CRC was calculated.
63 typedef std::map
<string
, dep_info
> DepList
;