diff options
Diffstat (limited to '')
-rw-r--r-- | src/filetarget.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/filetarget.h b/src/filetarget.h index c872c0a..856e854 100644 --- a/src/filetarget.h +++ b/src/filetarget.h | |||
@@ -2,6 +2,10 @@ | |||
2 | #define FILE_TARGET_H | 2 | #define FILE_TARGET_H |
3 | 3 | ||
4 | #include <stdint.h> | 4 | #include <stdint.h> |
5 | #include <map> | ||
6 | #include <sys/types.h> | ||
7 | #include <sys/stat.h> | ||
8 | #include <unistd.h> | ||
5 | #include "target.h" | 9 | #include "target.h" |
6 | 10 | ||
7 | class FileTarget : public Target | 11 | class FileTarget : public Target |
@@ -16,9 +20,12 @@ public: | |||
16 | 20 | ||
17 | virtual void check( class Builder &bld ); | 21 | virtual void check( class Builder &bld ); |
18 | virtual void clean( class Builder &bld ); | 22 | virtual void clean( class Builder &bld ); |
23 | |||
24 | time_t getTime( std::string str ); | ||
25 | void updateTime( std::string str ); | ||
19 | 26 | ||
20 | private: | 27 | private: |
21 | // start here with the file time cache | 28 | std::map<std::string, time_t> mTimes; |
22 | 29 | ||
23 | }; | 30 | }; |
24 | 31 | ||