diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-08-28 19:36:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-04 17:05:22 (GMT) |
commit | f7085d7b0a0d4cced41669b498a3d03c4a1e65df (patch) | |
tree | 51374aad15cc332b0337155ed3ab3c9d9c8f5d1b /Source/CPack/cmCPackArchiveGenerator.h | |
parent | 787765d4025cd1caa842d9bcfcf6cd71222b9d44 (diff) | |
download | CMake-f7085d7b0a0d4cced41669b498a3d03c4a1e65df.zip CMake-f7085d7b0a0d4cced41669b498a3d03c4a1e65df.tar.gz CMake-f7085d7b0a0d4cced41669b498a3d03c4a1e65df.tar.bz2 |
cmCPackArchiveGenerator: Code cleanup
Diffstat (limited to 'Source/CPack/cmCPackArchiveGenerator.h')
-rw-r--r-- | Source/CPack/cmCPackArchiveGenerator.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackArchiveGenerator.h b/Source/CPack/cmCPackArchiveGenerator.h index 9983854..9bd1ede 100644 --- a/Source/CPack/cmCPackArchiveGenerator.h +++ b/Source/CPack/cmCPackArchiveGenerator.h @@ -24,10 +24,18 @@ class cmCPackArchiveGenerator : public cmCPackGenerator public: typedef cmCPackGenerator Superclass; + static cmCPackGenerator* Create7ZGenerator(); + static cmCPackGenerator* CreateTBZ2Generator(); + static cmCPackGenerator* CreateTGZGenerator(); + static cmCPackGenerator* CreateTXZGenerator(); + static cmCPackGenerator* CreateTZGenerator(); + static cmCPackGenerator* CreateZIPGenerator(); + /** * Construct generator */ - cmCPackArchiveGenerator(cmArchiveWrite::Compress, std::string const& format); + cmCPackArchiveGenerator(cmArchiveWrite::Compress t, std::string format, + std::string extension); ~cmCPackArchiveGenerator() override; // Used to add a header to the archive virtual int GenerateHeader(std::ostream* os); @@ -68,9 +76,19 @@ protected: * components will be put in a single installer. */ int PackageComponentsAllInOne(); - const char* GetOutputExtension() override = 0; + +private: + const char* GetNameOfClass() override { return "cmCPackArchiveGenerator"; } + + const char* GetOutputExtension() override + { + return this->OutputExtension.c_str(); + } + +private: cmArchiveWrite::Compress Compress; std::string ArchiveFormat; + std::string OutputExtension; }; #endif |