1 | // |
2 | // ZipOperation.h |
3 | // |
4 | // Library: Zip |
5 | // Package: Manipulation |
6 | // Module: ZipOperation |
7 | // |
8 | // Definition of the ZipOperation class. |
9 | // |
10 | // Copyright (c) 2007, Applied Informatics Software Engineering GmbH. |
11 | // and Contributors. |
12 | // |
13 | // SPDX-License-Identifier: BSL-1.0 |
14 | // |
15 | |
16 | |
17 | #ifndef Zip_ZipOperation_INCLUDED |
18 | #define Zip_ZipOperation_INCLUDED |
19 | |
20 | |
21 | #include "Poco/Zip/Zip.h" |
22 | #include "Poco/RefCountedObject.h" |
23 | #include "Poco/AutoPtr.h" |
24 | #include <ostream> |
25 | #include <istream> |
26 | |
27 | |
28 | namespace Poco { |
29 | namespace Zip { |
30 | |
31 | |
32 | class Compress; |
33 | |
34 | |
35 | class Zip_API ZipOperation: public Poco::RefCountedObject |
36 | /// Abstract super class for operations on individual zip entries |
37 | { |
38 | public: |
39 | typedef Poco::AutoPtr<ZipOperation> Ptr; |
40 | |
41 | ZipOperation(); |
42 | /// Creates the ZipOperation. |
43 | |
44 | virtual void execute(Compress& c, std::istream& input) = 0; |
45 | /// Executes the operation |
46 | |
47 | protected: |
48 | virtual ~ZipOperation(); |
49 | /// Destroys the ZipOperation. |
50 | }; |
51 | |
52 | |
53 | } } // namespace Poco::Zip |
54 | |
55 | |
56 | #endif // Zip_ZipOperation_INCLUDED |
57 | |