diff options
author | Brad King <brad.king@kitware.com> | 2004-11-03 12:51:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-11-03 12:51:51 (GMT) |
commit | a5ae290a5bdacf492f31928adb271b85d1d6c4b2 (patch) | |
tree | e7449908786332210ad77275356dfc4a711c5cc5 /Source/cmGeneratedFileStream.h | |
parent | e34207c1f0493c002da8c74897b81a72ef3ef2d4 (diff) | |
download | CMake-a5ae290a5bdacf492f31928adb271b85d1d6c4b2.zip CMake-a5ae290a5bdacf492f31928adb271b85d1d6c4b2.tar.gz CMake-a5ae290a5bdacf492f31928adb271b85d1d6c4b2.tar.bz2 |
STYLE: Adjusted signature of cmGeneratedFileStream to make copy-if-different more explicity.
Diffstat (limited to 'Source/cmGeneratedFileStream.h')
-rw-r--r-- | Source/cmGeneratedFileStream.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/cmGeneratedFileStream.h b/Source/cmGeneratedFileStream.h index f447370..7430ef9 100644 --- a/Source/cmGeneratedFileStream.h +++ b/Source/cmGeneratedFileStream.h @@ -26,7 +26,7 @@ class cmGeneratedFileStreamBase { protected: // The constructor prepares the temporary output file. - cmGeneratedFileStreamBase(const char* name, bool copy_if_different); + cmGeneratedFileStreamBase(const char* name); // The destructor renames the temporary output file to the real name. ~cmGeneratedFileStreamBase(); @@ -65,13 +65,11 @@ public: /** * The constructor takes the name of the file to be generated. It - * automatically generates a name for the temporary file. The - * second argument specifies whether the copy-if-different check - * should be done. If the file cannot be opened an error message is - * produced unless the third argument is set to true. + * automatically generates a name for the temporary file. If the + * file cannot be opened an error message is produced unless the + * second argument is set to true. */ - cmGeneratedFileStream(const char* name, bool copy_if_different, - bool quiet = false); + cmGeneratedFileStream(const char* name, bool quiet=false); /** * The destructor checks the stream status to be sure the temporary @@ -79,6 +77,11 @@ public: * replaced. */ ~cmGeneratedFileStream(); + + /** + * Set whether copy-if-different is done. + */ + void SetCopyIfDifferent(bool copy_if_different); }; #endif |