4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
8 * \author Jean-Marc Lasgouttes
10 * Full author contact details are available in file CREDITS.
23 namespace support { class FileName; }
28 /** This one is a little bit harder since we need the absolute
29 filename. Should we insert files with .sty .cls etc as
31 void insert(support::FileName const & f, bool upd = false);
36 void write(support::FileName const & f) const;
37 /// returns true if dep file was read successfully
38 bool read(support::FileName const & f);
39 /// returns true if any of the files has changed
40 bool sumchange() const;
41 /// return true if fil has changed.
42 bool haschanged(support::FileName const & fil) const;
43 /// return true if a file with extension ext has changed.
44 bool extchanged(std::string const & ext) const;
46 bool exist(support::FileName const & fil) const;
47 /// returns true if any files with ext exist
48 bool ext_exist(std::string const & ext) const;
50 void remove_files_with_extension(std::string const &);
52 void remove_file(support::FileName const &);
57 /// Previously calculated CRC value
58 unsigned long crc_prev;
59 /// Current CRC value - only re-computed if mtime has changed.
60 unsigned long crc_cur;
61 /// mtime from last time current CRC was calculated.
62 std::time_t mtime_cur;
67 typedef std::map<support::FileName, dep_info> DepList;