mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
52 lines
942 B
C++
52 lines
942 B
C++
//
|
|
// Keep.h
|
|
//
|
|
// $Id: //poco/1.4/Zip/include/Poco/Zip/Keep.h#1 $
|
|
//
|
|
// Library: Zip
|
|
// Package: Manipulation
|
|
// Module: Keep
|
|
//
|
|
// Definition of the Keep class.
|
|
//
|
|
// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef Zip_Keep_INCLUDED
|
|
#define Zip_Keep_INCLUDED
|
|
|
|
|
|
#include "Poco/Zip/Zip.h"
|
|
#include "Poco/Zip/ZipOperation.h"
|
|
#include "Poco/Zip/ZipLocalFileHeader.h"
|
|
|
|
|
|
namespace Poco {
|
|
namespace Zip {
|
|
|
|
|
|
class Zip_API Keep: public ZipOperation
|
|
/// Keep simply forwards the compressed data stream from the input ZipArchive
|
|
/// to the output zip archive
|
|
{
|
|
public:
|
|
Keep(const ZipLocalFileHeader& hdr);
|
|
/// Creates the Keep object.
|
|
|
|
void execute(Compress& c, std::istream& input);
|
|
///Adds a copy of the compressed input file to the ZipArchive
|
|
|
|
private:
|
|
const ZipLocalFileHeader _hdr;
|
|
};
|
|
|
|
|
|
} } // namespace Poco::Zip
|
|
|
|
|
|
#endif // Zip_Keep_INCLUDED
|