mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-25 06:36:37 +01:00
fix: remove executable flag and change back to 100644 (was 100755) Signed-off-by: Roger Meier <r.meier@siemens.com>
40 lines
691 B
C++
40 lines
691 B
C++
//
|
|
// Replace.cpp
|
|
//
|
|
// $Id: //poco/1.4/Zip/src/Replace.cpp#1 $
|
|
//
|
|
// Library: Zip
|
|
// Package: Manipulation
|
|
// Module: Replace
|
|
//
|
|
// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "Poco/Zip/Replace.h"
|
|
#include "Poco/Zip/Compress.h"
|
|
|
|
|
|
namespace Poco {
|
|
namespace Zip {
|
|
|
|
|
|
Replace::Replace(const ZipLocalFileHeader& hdr, const std::string& localPath):
|
|
_del(hdr),
|
|
_add(hdr.getFileName(), localPath, hdr.getCompressionMethod(), hdr.getCompressionLevel())
|
|
{
|
|
}
|
|
|
|
|
|
void Replace::execute(Compress& c, std::istream& input)
|
|
{
|
|
_del.execute(c, input);
|
|
_add.execute(c, input);
|
|
}
|
|
|
|
|
|
} } // namespace Poco::Zip
|