ENH: Add compression support

This commit is contained in:
Andy Cedilnik
2005-01-27 10:14:24 -05:00
parent 197ba0bdd6
commit 14477cee6e
2 changed files with 86 additions and 11 deletions

View File

@@ -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