1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 18:07:14 +01:00
SqMod/vendor/POCO/Zip/include/Poco/Zip/ZipOperation.h
Sandu Liviu Catalin 4a6bfc086c Major plugin refactor and cleanup.
Switched to POCO library for unified platform/library interface.
Deprecated the external module API. It was creating more problems than solving.
Removed most built-in libraries in favor of system libraries for easier maintenance.
Cleaned and secured code with help from static analyzers.
2021-01-30 08:51:39 +02:00

57 lines
981 B
C++

//
// ZipOperation.h
//
// Library: Zip
// Package: Manipulation
// Module: ZipOperation
//
// Definition of the ZipOperation class.
//
// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Zip_ZipOperation_INCLUDED
#define Zip_ZipOperation_INCLUDED
#include "Poco/Zip/Zip.h"
#include "Poco/RefCountedObject.h"
#include "Poco/AutoPtr.h"
#include <ostream>
#include <istream>
namespace Poco {
namespace Zip {
class Compress;
class Zip_API ZipOperation: public Poco::RefCountedObject
/// Abstract super class for operations on individual zip entries
{
public:
using Ptr = Poco::AutoPtr<ZipOperation>;
ZipOperation();
/// Creates the ZipOperation.
virtual void execute(Compress& c, std::istream& input) = 0;
/// Executes the operation
protected:
virtual ~ZipOperation();
/// Destroys the ZipOperation.
};
} } // namespace Poco::Zip
#endif // Zip_ZipOperation_INCLUDED