X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FDepTable.h;h=0f9b4827fe24eb5a5c40f9e92a1a87250d29542a;hb=dfe1bc44b44903faf77ef454c98c4c3e56c1d5e3;hp=f23e66adb22440a7efd925c2e25ab3ccec29956c;hpb=863fff8fb8023aadcb1c4674b14b9b79ac7a0e58;p=features.git diff --git a/src/DepTable.h b/src/DepTable.h index f23e66adb2..0f9b4827fe 100644 --- a/src/DepTable.h +++ b/src/DepTable.h @@ -15,18 +15,19 @@ #define DEP_TABLE_H #include "LString.h" -#include +#include + +#ifdef __GNUG__ +#pragma interface +#endif /// 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, + void insert(string const & f, bool upd = false, unsigned long one = 0, unsigned long two = 0); @@ -39,25 +40,15 @@ public: void read(string const &f); /// returns true if any of the files has changed bool sumchange(); - /// - bool haschanged(string const &fil); + /// return true if fil has changed. + bool haschanged(string const & fil); + /// return true if a file with extension ext has changed. + bool extchanged(string const & ext); 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; - + typedef map > DepList; /// - void write(FILE *f); + DepList deplist; }; #endif