mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-07 09:48:04 +01:00
37 lines
585 B
C++
37 lines
585 B
C++
//
|
|
// Rename.cpp
|
|
//
|
|
// Library: Zip
|
|
// Package: Manipulation
|
|
// Module: Rename
|
|
//
|
|
// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "Poco/Zip/Rename.h"
|
|
#include "Poco/Zip/Compress.h"
|
|
|
|
|
|
namespace Poco {
|
|
namespace Zip {
|
|
|
|
|
|
Rename::Rename(const ZipLocalFileHeader& hdr, const std::string& newZipEntryName):
|
|
_hdr(hdr),
|
|
_newZipEntryName(newZipEntryName)
|
|
{
|
|
}
|
|
|
|
|
|
void Rename::execute(Compress& c, std::istream& input)
|
|
{
|
|
c.addFileRaw(input, _hdr, _newZipEntryName);
|
|
}
|
|
|
|
|
|
} } // namespace Poco::Zip
|