summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratedFileStream.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-27 15:14:24 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-27 15:14:24 (GMT)
commit14477cee6e8a380e74f4cbf70afe5f3c3bfbd8a2 (patch)
tree4bcf591495aed6f04124fc1a7039f9a4dcd45fe8 /Source/cmGeneratedFileStream.h
parent197ba0bdd6a331af212e997595190372e06b55c5 (diff)
downloadCMake-14477cee6e8a380e74f4cbf70afe5f3c3bfbd8a2.zip
CMake-14477cee6e8a380e74f4cbf70afe5f3c3bfbd8a2.tar.gz
CMake-14477cee6e8a380e74f4cbf70afe5f3c3bfbd8a2.tar.bz2
ENH: Add compression support
Diffstat (limited to 'Source/cmGeneratedFileStream.h')
-rw-r--r--Source/cmGeneratedFileStream.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmGeneratedFileStream.h b/Source/cmGeneratedFileStream.h
index ff5f228..e9b1bb7 100644
--- a/Source/cmGeneratedFileStream.h
+++ b/Source/cmGeneratedFileStream.h
@@ -41,6 +41,9 @@ protected:
// Internal file replacement implementation.
int RenameFile(const char* oldname, const char* newname);
+ // Internal file compression implementation.
+ int CompressFile(const char* oldname, const char* newname);
+
// The name of the final destination file for the output.
std::string m_Name;
@@ -52,6 +55,9 @@ protected:
// Whether the destination file should be replaced.
bool m_Okay;
+
+ // Whether the destionation file is compressed
+ bool m_Compress;
};
/** \class cmGeneratedFileStream
@@ -103,6 +109,11 @@ public:
* Set whether copy-if-different is done.
*/
void SetCopyIfDifferent(bool copy_if_different);
+
+ /**
+ * Set whether compression is done.
+ */
+ void SetCompression(bool compression);
};
#endif