1//
2// Rename.cpp
3//
4// Library: Zip
5// Package: Manipulation
6// Module: Rename
7//
8// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
9// and Contributors.
10//
11// SPDX-License-Identifier: BSL-1.0
12//
13
14
15#include "Poco/Zip/Rename.h"
16#include "Poco/Zip/Compress.h"
17
18
19namespace Poco {
20namespace Zip {
21
22
23Rename::Rename(const ZipLocalFileHeader& hdr, const std::string& newZipEntryName):
24 _hdr(hdr),
25 _newZipEntryName(newZipEntryName)
26{
27}
28
29
30void Rename::execute(Compress& c, std::istream& input)
31{
32 c.addFileRaw(input, _hdr, _newZipEntryName);
33}
34
35
36} } // namespace Poco::Zip
37