Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / CPack / cmCPackTarCompressGenerator.h
blob0bcd5c49980202a62c3e92ef0a667149a6ab7b8d
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCPackTarCompressGenerator.h,v $
5 Language: C++
6 Date: $Date: 2007/02/02 19:40:26 $
7 Version: $Revision: 1.4 $
9 Copyright (c) 2002 Kitware, Inc. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
18 #ifndef cmCPackTarCompressGenerator_h
19 #define cmCPackTarCompressGenerator_h
21 #include "cmCPackTGZGenerator.h"
23 /** \class cmCPackTarCompressGenerator
24 * \brief A generator for TarCompress files
26 class cmCPackTarCompressGenerator : public cmCPackTGZGenerator
28 public:
29 friend class cmCPackTarCompressGeneratorForward;
30 cmCPackTypeMacro(cmCPackTarCompressGenerator, cmCPackTGZGenerator);
32 /**
33 * Construct generator
35 cmCPackTarCompressGenerator();
36 virtual ~cmCPackTarCompressGenerator();
38 protected:
39 virtual int InitializeInternal();
40 int CompressFiles(const char* outFileName, const char* toplevel,
41 const std::vector<std::string>& files);
42 virtual const char* GetOutputExtension() { return ".tar.Z"; }
44 int RenameFile(const char* oldname, const char* newname);
45 int GenerateHeader(std::ostream* os);
48 #endif