mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 18:07:14 +01:00
4a6bfc086c
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.
57 lines
981 B
C++
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
|