diff options
author | Brad King <brad.king@kitware.com> | 2005-02-17 16:28:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-17 16:28:13 (GMT) |
commit | e2ec4a18453f3bdc1ab826a618a2202c5e9e9dec (patch) | |
tree | e3da86475a22bb5fadac55c4fe258a244603bb82 /Source/kwsys/SystemTools.hxx.in | |
parent | 508cff55f6a26fce3c2bc26b3d00de9c6f96c6e6 (diff) | |
download | CMake-e2ec4a18453f3bdc1ab826a618a2202c5e9e9dec.zip CMake-e2ec4a18453f3bdc1ab826a618a2202c5e9e9dec.tar.gz CMake-e2ec4a18453f3bdc1ab826a618a2202c5e9e9dec.tar.bz2 |
ENH: Adding kwsys::SystemTools::FileTimeCompare method to compare file modification times with the highest resolution possible on the file system.
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r-- | Source/kwsys/SystemTools.hxx.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in index eff12b4..ab702d2 100644 --- a/Source/kwsys/SystemTools.hxx.in +++ b/Source/kwsys/SystemTools.hxx.in @@ -139,6 +139,14 @@ public: static bool FileExists(const char* filename); static unsigned long FileLength(const char *filename); + + /** Compare file modification times. + Returns true for successful comparison and false for error. + When true is returned, result has -1, 0, +1 for + f1 older, same, or newer than f2. */ + static bool FileTimeCompare(const char* f1, const char* f2, + int* result); + /** * Add the paths from the environment variable PATH to the * string vector passed in. If env is set then the value |