diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2010-08-24 19:41:32 (GMT) |
---|---|---|
committer | Eric NOULARD <eric.noulard@gmail.com> | 2010-08-24 19:41:32 (GMT) |
commit | 36a550ae7a6d903bae2eaf950a18131251ffce03 (patch) | |
tree | 8dccaffc3f93a12f100c3d18ac8b5a604ab3ab19 /Source/CPack/cmCPackArchiveGenerator.h | |
parent | d5e3e04a23e270de97c8614aaca9663d64c42942 (diff) | |
download | CMake-36a550ae7a6d903bae2eaf950a18131251ffce03.zip CMake-36a550ae7a6d903bae2eaf950a18131251ffce03.tar.gz CMake-36a550ae7a6d903bae2eaf950a18131251ffce03.tar.bz2 |
CPackArchiveGenerator use cmArchiveWrite wrapper
Diffstat (limited to 'Source/CPack/cmCPackArchiveGenerator.h')
-rw-r--r-- | Source/CPack/cmCPackArchiveGenerator.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/CPack/cmCPackArchiveGenerator.h b/Source/CPack/cmCPackArchiveGenerator.h index d3409ae..49ae112 100644 --- a/Source/CPack/cmCPackArchiveGenerator.h +++ b/Source/CPack/cmCPackArchiveGenerator.h @@ -13,24 +13,25 @@ #ifndef cmCPackArchiveGenerator_h #define cmCPackArchiveGenerator_h +#include "cmArchiveWrite.h" #include "cmCPackGenerator.h" /** \class cmCPackArchiveGenerator - * \brief A generator base for libarchive generation + * \brief A generator base for libarchive generation. + * The generator itself uses the libarchive wrapper + * \ref cmArchiveWrite. * */ class cmCPackArchiveGenerator : public cmCPackGenerator { public: - enum CompressType{ GZIP, BZIP2, COMPRESS, LZMA, NONE}; - enum ArchiveType{ TAR, ZIP}; cmTypeMacro(cmCPackArchiveGenerator, cmCPackGenerator); /** * Construct generator */ - cmCPackArchiveGenerator(CompressType, ArchiveType); + cmCPackArchiveGenerator(cmArchiveWrite::Compress, cmArchiveWrite::Type); virtual ~cmCPackArchiveGenerator(); // Used to add a header to the archive virtual int GenerateHeader(std::ostream* os); @@ -39,8 +40,8 @@ protected: virtual int InitializeInternal(); int PackageFiles(); virtual const char* GetOutputExtension() = 0; - CompressType Compress; - ArchiveType Archive; + cmArchiveWrite::Compress Compress; + cmArchiveWrite::Type Archive; }; #endif |