NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
|
Common interface for classes providing compressing and decompressing functionality. More...
#include <be_io_compressor.h>
Inherited by BiometricEvaluation::IO::GZip.
Public Types | |
enum class | Kind { GZIP } |
Kinds of Compressors (for factory) More... | |
Public Member Functions | |
Compressor () | |
Create a new Compressor object. More... | |
virtual Memory::uint8Array | compress (const uint8_t *const uncompressedData, uint64_t uncompressedDataSize) const =0 |
Compress a buffer. More... | |
virtual Memory::uint8Array | compress (const Memory::uint8Array &uncompressedData) const =0 |
Compress a buffer. More... | |
virtual void | compress (const uint8_t *const uncompressedData, uint64_t uncompressedDataSize, const std::string &outputFile) const =0 |
Compress a buffer. More... | |
virtual void | compress (const Memory::uint8Array &uncompressedData, const std::string &outputFile) const =0 |
Compress a buffer. More... | |
virtual Memory::uint8Array | compress (const std::string &inputFile) const =0 |
Compress a file. More... | |
virtual void | compress (const std::string &inputFile, const std::string &outputFile) const =0 |
Compress a file. More... | |
virtual Memory::uint8Array | decompress (const uint8_t *const compressedData, uint64_t compressedDataSize) const =0 |
Decompress a compressed buffer. More... | |
virtual Memory::uint8Array | decompress (const Memory::uint8Array &compressedData) const =0 |
Decompress a compressed buffer. More... | |
virtual Memory::uint8Array | decompress (const std::string &inputFile) const =0 |
Decompress a compressed buffer into a file. More... | |
virtual void | decompress (const Memory::uint8Array &compressedData, const std::string &outputFile) const =0 |
Decompress a file. More... | |
virtual void | decompress (const uint8_t *const compressedData, const uint64_t compressedDataSize, const std::string &outputFile) const =0 |
Decompress a file. More... | |
virtual void | decompress (const std::string &inputFile, const std::string &outputFile) const =0 |
Decompress a file. More... | |
void | setOption (const std::string &optionName, const std::string &optionValue) |
Assign a compressor option. More... | |
void | setOption (const std::string &optionName, int64_t optionValue) |
Assign a compressor option. More... | |
std::string | getOption (const std::string &optionName) const |
Obtain a compressor option as an integer. More... | |
int64_t | getOptionAsInteger (const std::string &optionName) const |
Obtain a compressor option as an integer. More... | |
void | removeOption (const std::string &optionName) |
Remove a compressor option. More... | |
virtual | ~Compressor () |
Destructor. More... | |
Compressor (const Compressor &other)=delete | |
Copy constructor (disabled). More... | |
Compressor & | operator= (const Compressor &other)=delete |
Assignment overload (disabled). More... | |
Static Public Member Functions | |
static std::shared_ptr< Compressor > | createCompressor (Compressor::Kind compressorKind=Kind::GZIP) |
Compressor factory. More... | |
Common interface for classes providing compressing and decompressing functionality.
Definition at line 32 of file be_io_compressor.h.
|
strong |
BiometricEvaluation::IO::Compressor::Compressor | ( | ) |
Create a new Compressor object.
Default compression options will be used.
|
virtual |
Destructor.
|
delete |
Copy constructor (disabled).
Disabled because Properties member cannot be copied.
other | Compressor to copy. |
|
pure virtual |
Compress a buffer.
uncompressedData | Uncompressed data buffer to compress. |
uncompressedDataSize | Size of uncompressedData. |
Error::StrategyError | Error in compression unit. |
Implemented in BiometricEvaluation::IO::GZip.
|
pure virtual |
Compress a buffer.
uncompressedData | Uncompressed data buffer to compress. |
Error::StrategyError | Error in decompression unit. |
Implemented in BiometricEvaluation::IO::GZip.
|
pure virtual |
Compress a buffer.
uncompressedData | Uncompressed data buffer to compress. |
uncompressedDataSize | Size of uncompressedData. |
outputFile | Location to save compressed file. |
Error::ObjectExists | Output file already exists. |
Error::StrategyError | Error in compression unit. |
Implemented in BiometricEvaluation::IO::GZip.
|
pure virtual |
Compress a buffer.
uncompressedData | Uncompressed data buffer to compress. |
outputFile | Location to save compressed file. |
Error::ObjectExists | Output file already exists. |
Error::StrategyError | Error in decompression unit. |
Implemented in BiometricEvaluation::IO::GZip.
|
pure virtual |
Compress a file.
inputFile | Path to file to compress. |
Error::ObjectDoesNotExist | Input file does not exist. |
Error::StrategyError | Error in decompression unit. |
Implemented in BiometricEvaluation::IO::GZip.
|
pure virtual |
Compress a file.
inputFile | Path to file to compress. |
outputFile | Path to location where compressed version will be saved. |
Error::ObjectDoesNotExist | Input file does not exist. |
Error::ObjectExists | Output file already exists. |
Error::StrategyError | Error in decompression unit. |
Implemented in BiometricEvaluation::IO::GZip.
|
pure virtual |
Decompress a compressed buffer.
compressedData | Compressed data buffer to decompress. |
compressedDataSize | Size of compressedData. |
Error::StrategyError | Error in compression unit. |
Implemented in BiometricEvaluation::IO::GZip.
|
pure virtual |
Decompress a compressed buffer.
compressedData | Compressed data buffer to decompress. |
Error::StrategyError | Error in decompression unit. |
Implemented in BiometricEvaluation::IO::GZip.
|
pure virtual |
Decompress a compressed buffer into a file.
inputFile | Location to save compressed file. |
Error::StrategyError | Error in decompression unit. |
Error::ObjectDoesNotExists | Output file already exists. |
Implemented in BiometricEvaluation::IO::GZip.
|
pure virtual |
Decompress a file.
compressedData | Compressed data buffer to decompress. |
outputFile | Path to location where decompressed version will be saved. |
Error::ObjectExists | Output file already exists. |
Error::StrategyError | Error in compression unit. |
Implemented in BiometricEvaluation::IO::GZip.
|
pure virtual |
Decompress a file.
compressedData | Compressed data buffer to decompress. |
compressedDataSize | Size of compressedData. |
outputFile | Path to location where decompressed version will be saved. |
Error::ObjectExists | Output file already exists. |
Error::StrategyError | Error in compression unit. |
Implemented in BiometricEvaluation::IO::GZip.
|
pure virtual |
Decompress a file.
inputFile | Path to file to decompress. |
outputFile | Path to location where decompressed version will be saved. |
Error::ObjectDoesNotExist | Input file does not exist. |
Error::ObjectExists | Output file already exists. |
Error::StrategyError | Error in compression unit. |
Implemented in BiometricEvaluation::IO::GZip.
void BiometricEvaluation::IO::Compressor::setOption | ( | const std::string & | optionName, |
const std::string & | optionValue | ||
) |
Assign a compressor option.
Will overwrite existing values without warning.
optionName | Name of the option to add. |
optionValue | Value of the option. |
Error::StrategyError | Error setting option. |
void BiometricEvaluation::IO::Compressor::setOption | ( | const std::string & | optionName, |
int64_t | optionValue | ||
) |
Assign a compressor option.
Will overwrite existing values without warning.
optionName | Name of the option to add. |
optionValue | Value of the option. |
Error::StrategyError | Error setting option. |
std::string BiometricEvaluation::IO::Compressor::getOption | ( | const std::string & | optionName | ) | const |
Obtain a compressor option as an integer.
optionName | Name of the option to obtain. |
int64_t BiometricEvaluation::IO::Compressor::getOptionAsInteger | ( | const std::string & | optionName | ) | const |
Obtain a compressor option as an integer.
optionName | Name of the option to obtain. |
Error::ObjectDoesNotExist | The option was never set. |
void BiometricEvaluation::IO::Compressor::removeOption | ( | const std::string & | optionName | ) |
Remove a compressor option.
optionName | Name of the option to remove. |
|
static |
Compressor factory.
compressorKind | A known kind of compressor. |
Error::ObjectDoesNotExist | Invalid compressor type. |
|
delete |
Assignment overload (disabled).
Disabled because Properties member cannot be assigned.
other | Compressor to assign. |