diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-01-27 15:14:24 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-01-27 15:14:24 (GMT) |
commit | 14477cee6e8a380e74f4cbf70afe5f3c3bfbd8a2 (patch) | |
tree | 4bcf591495aed6f04124fc1a7039f9a4dcd45fe8 /Source/cmGeneratedFileStream.h | |
parent | 197ba0bdd6a331af212e997595190372e06b55c5 (diff) | |
download | CMake-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.h | 11 |
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 |