qb
2.0.0.0
C++17 Actor Framework
|
Factory interface for creating decompression providers. More...
#include <compression.h>
Public Member Functions | |
virtual const std::string & | algorithm () const =0 |
Get the name of the decompression algorithm. | |
virtual uint16_t | weight () const =0 |
Get the weight of this decompression algorithm. | |
virtual std::unique_ptr< decompress_provider > | make_decompressor () const =0 |
Create a new decompressor instance. | |
virtual | ~decompress_factory ()=default |
Virtual destructor. |
Factory interface for creating decompression providers.
This class defines the interface for factories that create decompressor instances. It allows the creation of decompressors to be abstracted from their implementation and configuration.
|
pure virtual |
Get the name of the decompression algorithm.
|
pure virtual |
Get the weight of this decompression algorithm.
The weight is used to prioritize decompression algorithms when multiple algorithms are available for a given input.
|
pure virtual |
Create a new decompressor instance.