Inherited by Compression::DecompressionRegistrarImpl.
◆ VisitDecompressionInterfaceCallback
Callback function that is invoked for every registered decompression interface return true to indicate that visitation of decompression interfaces should continue returning false halts iteration
◆ FindDecompressionInterface() [1/2]
virtual IDecompressionInterface * Compression::DecompressionRegistrarInterface::FindDecompressionInterface |
( |
AZStd::string_view |
algorithmName | ) |
const |
|
pure virtual |
Queries the decompression interface using the name of the compression algorithm This is slower than the using the compression algorithm ID. Furthermore the algorithm name doesn't have to be unique, so this will return the first compression interface associated with the algorithm name
- Parameters
-
algorithmName | Name of the compression algorithm. NOTE: The compression algorithm name is not checked for uniqueness, unlike the algorithm id |
- Returns
- pointer to the decompression interface or nullptr if not found
Implemented in Compression::DecompressionRegistrarImpl.
◆ FindDecompressionInterface() [2/2]
virtual IDecompressionInterface * Compression::DecompressionRegistrarInterface::FindDecompressionInterface |
( |
CompressionAlgorithmId |
compressionAlgorithmId | ) |
const |
|
pure virtual |
Queries the decompression interface with the decompression algorithm Id
- Parameters
-
compressionAlgorithmId | unique Id of decompression interface to query |
- Returns
- pointer to the decompression interface or nullptr if not found
Implemented in Compression::DecompressionRegistrarImpl.
◆ IsRegistered()
virtual bool Compression::DecompressionRegistrarInterface::IsRegistered |
( |
CompressionAlgorithmId |
compressionAlgorithmId | ) |
const |
|
pure virtual |
Return true if there is an decompression interface registered with the specified id
- Parameters
-
compressionAlgorithmId | CompressionAlgorithmId to determine if an decompression interface is registered |
- Returns
- bool indicating if there is an decompression interface with the id registered
Implemented in Compression::DecompressionRegistrarImpl.
◆ RegisterDecompressionInterface() [1/2]
virtual AZ::Outcome< void, AZStd::unique_ptr< IDecompressionInterface > > Compression::DecompressionRegistrarInterface::RegisterDecompressionInterface |
( |
CompressionAlgorithmId |
compressionAlgorithmId, |
|
|
AZStd::unique_ptr< IDecompressionInterface > |
decompressionInterface |
|
) |
| |
|
pure virtual |
Registers decompression interface and takes ownership of it if registration is successful
- Parameters
-
compressionAlgorithmId | Unique id to associate with decompression interface |
decompressionInterface | decompression interface to register |
- Returns
- Success outcome if the decompression interface was successfully registered Otherwise, a failure outcome with the decompression interface is forward back to the caller
Implemented in Compression::DecompressionRegistrarImpl.
◆ RegisterDecompressionInterface() [2/2]
virtual bool Compression::DecompressionRegistrarInterface::RegisterDecompressionInterface |
( |
CompressionAlgorithmId |
compressionAlgorithmId, |
|
|
IDecompressionInterface & |
decompressionInterface |
|
) |
| |
|
pure virtual |
Registers decompression interface, but does not take ownership of it If a decompression interface with a CompressionAlgorithmId is registered that matches the input decompression interface, then registration does not occur
Registers decompression interface, but does not take ownership of it
- Parameters
-
compressionAlgorithmId | Unique id to associate with decompression interface |
decompressionInterface | decompression interface to register |
- Returns
- true if the ICompressionInterface was successfully registered
Implemented in Compression::DecompressionRegistrarImpl.
◆ UnregisterDecompressionInterface()
virtual bool Compression::DecompressionRegistrarInterface::UnregisterDecompressionInterface |
( |
CompressionAlgorithmId |
compressionAlgorithmId | ) |
|
|
pure virtual |
Unregisters the decompression interface with the specified id
- Parameters
-
decompressionAlgorithmId | unique Id that identifies the decompression interface |
- Returns
- true if the unregistration is successful
Implemented in Compression::DecompressionRegistrarImpl.
◆ VisitDecompressionInterfaces()
The documentation for this class was generated from the following file:
- Gems/Compression/Code/Include/Compression/DecompressionInterfaceAPI.h