cmCPackTarCompressGenerator.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc.
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCPackTarCompressGenerator_h
  11. #define cmCPackTarCompressGenerator_h
  12. #include "cmCPackTGZGenerator.h"
  13. /** \class cmCPackTarCompressGenerator
  14. * \brief A generator for TarCompress files
  15. */
  16. class cmCPackTarCompressGenerator : public cmCPackTGZGenerator
  17. {
  18. public:
  19. friend class cmCPackTarCompressGeneratorForward;
  20. cmCPackTypeMacro(cmCPackTarCompressGenerator, cmCPackTGZGenerator);
  21. /**
  22. * Construct generator
  23. */
  24. cmCPackTarCompressGenerator();
  25. virtual ~cmCPackTarCompressGenerator();
  26. protected:
  27. virtual int InitializeInternal();
  28. int CompressFiles(const char* outFileName, const char* toplevel,
  29. const std::vector<std::string>& files);
  30. virtual const char* GetOutputExtension() { return ".tar.Z"; }
  31. int RenameFile(const char* oldname, const char* newname);
  32. int GenerateHeader(std::ostream* os);
  33. };
  34. #endif