|
denigma 4.0.0
|
Lightweight registry for locating converters by source and target format. More...
#include <conversion.h>
Public Member Functions | |
| void | add (std::unique_ptr< IConverter > converter) |
| Adds a converter to the registry. | |
| void | add (std::unique_ptr< IMultiOutputConverter > converter) |
| Adds a multi-output converter to the registry. | |
| void | add (std::unique_ptr< IReaderConverter > converter) |
| Adds a reader-backed converter to the registry. | |
| void | add (std::unique_ptr< IReaderMultiOutputConverter > converter) |
| Adds a reader-backed multi-output converter to the registry. | |
| const IConverter * | find (FormatId sourceFormat, FormatId targetFormat) const |
| Returns the first registered converter matching the requested formats, or nullptr. | |
| const IMultiOutputConverter * | findMultiOutput (FormatId sourceFormat, FormatId targetFormat) const |
| Returns the first registered multi-output converter matching the requested formats, or nullptr. | |
| const IReaderConverter * | findReader (FormatId sourceFormat, FormatId targetFormat) const |
| Returns the first registered reader-backed converter matching the requested formats, or nullptr. | |
| const IReaderMultiOutputConverter * | findReaderMultiOutput (FormatId sourceFormat, FormatId targetFormat) const |
| Returns the first registered reader-backed multi-output converter matching the requested formats, or nullptr. | |
Lightweight registry for locating converters by source and target format.