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 * ======================================================
29 /** This one is a little bit harder since we need the absolute
30 filename. Should we insert files with .sty .cls etc as
32 void insert(string const & f,
38 void write(string const & f) const;
40 void read(string const & f);
41 /// returns true if any of the files has changed
42 bool sumchange() const;
43 /// return true if fil has changed.
44 bool haschanged(string const & fil) const;
45 /// return true if a file with extension ext has changed.
46 bool extchanged(string const & ext) const;
48 bool exist(string const & fil) const;
49 /// returns true if any files with ext exist
50 bool ext_exist(string const& ext) const;
52 void remove_files_with_extension(string const &);
54 void remove_file(string const &);
58 /// Previously calculated CRC value
59 unsigned long crc_prev;
60 /// Current CRC value - only re-computed if mtime has changed.
61 unsigned long crc_cur;
62 /// mtime from last time current CRC was calculated.
68 typedef std::map<string, dep_info> DepList;