summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-04-14 15:43:45 (GMT)
committerBrad King <brad.king@kitware.com>2008-04-14 15:43:45 (GMT)
commit703b8c822592d51d449930e1280c2a3dc92698e9 (patch)
treefce7d696f6bd00fdf2bcfb0ea134ba5cd838442f /Source/cmSystemTools.h
parentce0f575473fa46fb732089390be4e89498a914d1 (diff)
downloadCMake-703b8c822592d51d449930e1280c2a3dc92698e9.zip
CMake-703b8c822592d51d449930e1280c2a3dc92698e9.tar.gz
CMake-703b8c822592d51d449930e1280c2a3dc92698e9.tar.bz2
ENH: Added methods to cmSystemTools to save and restore file modification times.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index a7abc5f..18c4939 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -22,7 +22,7 @@
#include <cmsys/SystemTools.hxx>
#include <cmsys/Process.h>
-
+class cmSystemToolsFileTime;
/** \class cmSystemTools
* \brief A collection of useful functions for CMake.
@@ -363,6 +363,12 @@ public:
the first argument to that named by the second. */
static bool CopyFileTime(const char* fromFile, const char* toFile);
+ /** Save and restore file times. */
+ static cmSystemToolsFileTime* FileTimeNew();
+ static void FileTimeDelete(cmSystemToolsFileTime*);
+ static bool FileTimeGet(const char* fname, cmSystemToolsFileTime* t);
+ static bool FileTimeSet(const char* fname, cmSystemToolsFileTime* t);
+
/** Find the directory containing the running executable. Save it
in a global location to be queried by GetExecutableDirectory
later. */