]> git.ipfire.org Git - thirdparty/squid.git/commit
Create Packable interface class
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 3 Mar 2015 09:45:37 +0000 (01:45 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 3 Mar 2015 09:45:37 +0000 (01:45 -0800)
commitd570dc5327a14de7349facb96f0b3217ee98b4ac
tree5902c51ae6837ef381a994590331f6ab22731c94
parentd2a739f519b9863bb1920a5a1353c4c6827415b0
Create Packable interface class

Packer class model used C-style function pointers and a standalone
object to perform C-style trampoline for function/method calls.

C++ virtual methods offer to inline all that directly in the data store
objects and enforces type safety on the child object methods instead of
forcing manual type casting on developers.

Re-implement Packer as a wrapper class providing the Packable interface
for backward compatibility with Packer* code. Future code should inherit
objects directly from Packable and implement the interface.
src/Packer.cc
src/Packer.h
src/base/Makefile.am
src/base/Packable.h [new file with mode: 0644]