diff options
author | Brad King <brad.king@kitware.com> | 2020-07-07 17:26:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-07-08 19:49:56 (GMT) |
commit | 0d3a034725bdf221f7ea47eee286854facac4979 (patch) | |
tree | 2620845276b83d3e3dc8c491789fd3fc5ccb625a /Source/cmGeneratedFileStream.h | |
parent | 26c12711598cd7b1eadaf8261773255599e10a29 (diff) | |
download | CMake-0d3a034725bdf221f7ea47eee286854facac4979.zip CMake-0d3a034725bdf221f7ea47eee286854facac4979.tar.gz CMake-0d3a034725bdf221f7ea47eee286854facac4979.tar.bz2 |
cmGeneratedFileStream: Optionally use custom temporary file extension
Diffstat (limited to 'Source/cmGeneratedFileStream.h')
-rw-r--r-- | Source/cmGeneratedFileStream.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmGeneratedFileStream.h b/Source/cmGeneratedFileStream.h index a9088ac..3dee142 100644 --- a/Source/cmGeneratedFileStream.h +++ b/Source/cmGeneratedFileStream.h @@ -43,6 +43,9 @@ protected: // The name of the final destination file for the output. std::string Name; + // The extension of the temporary file. + std::string TempExt; + // The name of the temporary file. std::string TempName; @@ -138,6 +141,12 @@ public: * the output file to be changed during the use of cmGeneratedFileStream. */ void SetName(const std::string& fname); + + /** + * Set set a custom temporary file extension used with 'Open'. + * This does not work if the file was opened by the constructor. + */ + void SetTempExt(std::string const& ext); }; #endif |