Abstract factory to instantiate compressors. More...
#include <ICompressor.h>
Public Member Functions | |
virtual AZStd::unique_ptr< ICompressor > | Create ()=0 |
virtual const AZStd::string_view | GetFactoryName () const =0 |
Abstract factory to instantiate compressors.
ICompressorFactory is an abstract compression interface meant for user provided GEMs to implement. ICompressorFactory implementations can be registered to classes implementing INetworking. Registered factories can then be used to create ICompressor implementations on demand. The Multiplayer Compression Gem is an example of an ICompressorFactory for an LZ4 Compressor. In it, MultiplayerCompressionSystemComponent registers its ICompressorFactory with NetworkingSystemComponent, which is an implementation of INetworking. Registered factories are keyed by an AZ::Crc32 of their string name accessed through the factory's GetFactoryName method.
|
pure virtual |
Instantiate a new compressor
|
pure virtual |
Gets the string name of this compressor factory