13#ifndef ML_DATA_COMPRESSOR_FACTORY_H
14#define ML_DATA_COMPRESSOR_FACTORY_H
#define MLDATA_COMPRESSOR_EXPORT
Global and OS specific declarations for the MLDataCompressor project.
Class representing general ML objects that support import/export via strings (setPersistentState() an...
Factory for ML data compression algorithms.
static std::vector< CompressionRegisterEntry >::iterator _findCompressorType(const std::string &typeName)
Search a compressor with type name and return its corresponding registration entry.
static std::vector< CompressionRegisterEntry > _dataCompressorTypes
The list of RuntimeTypes of available DataCompressors.
static MLErrorCode unregisterCompressor(const RuntimeType &rtType)
Remove a registered data compressor.
static std::vector< CompressionRegisterEntry >::const_iterator findCompressorTypeConst(const RuntimeType &rtType)
Search a compressor with type name and return its corresponding registration entry.
static std::vector< std::string > getRegisteredDataCompressorNames()
Returns list of all names of currently registered DataCompressors.
static const std::vector< CompressionRegisterEntry > & getRegisteredDataCompressors()
Provides constant access to the list of available DataCompressors.
static DataCompressor * createCompressor(const std::string &typeName, MLErrorCode *errCode=nullptr)
Factory and registration support for data compressors.
static MLErrorCode registerCompressor(const RuntimeType *rtType)
Registers a data compressor.
static std::vector< CompressionRegisterEntry >::iterator _findCompressorType(const RuntimeType &rtType)
Search a compressor with type name and return its corresponding registration entry.
static std::vector< CompressionRegisterEntry >::const_iterator findCompressorTypeConst(const std::string &typeName)
Search a compressor with type name and return its corresponding registration entry.
static DataCompressor * _createCompressor(const RuntimeType *rtType, MLErrorCode &err)
Build a data compressor instance from a RumtimeType, even if it is not registered.
Abstract base class for ML data compression algorithms.
RuntimeType contains type and inheritance information of a class and a static dictionary with informa...
MLint32 MLErrorCode
Type of an ML Error code.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non existing export symbol.