src: class Packer decomposition, introduce PackerBase

This commit is contained in:
Markus F.X.J. Oberhumer
2023-08-10 20:40:27 +02:00
parent a66ee9fafd
commit c65c882ecc
8 changed files with 130 additions and 111 deletions
+3 -3
View File
@@ -28,7 +28,7 @@
#pragma once
class OutputFile;
class Packer;
class PackerBase;
/*************************************************************************
//
@@ -36,7 +36,7 @@ class Packer;
class UiPacker final {
public:
explicit UiPacker(const Packer *p_);
explicit UiPacker(const PackerBase *);
public:
virtual ~UiPacker() noexcept;
@@ -84,7 +84,7 @@ public:
protected:
virtual void printInfo(int nl = 0);
const Packer *const p; // reference
const PackerBase *const pb; // reference, required
// callback
upx_callback_t cb = {};