ImageProcessing::ProcessorRegistry
ImageProcessing::ProcessorRegistry
Registry for different ImageProcessor implementations. More…
#include <ImageProcessor.hpp>
Public Functions
| Name | |
|---|---|
| void | registerProcessor(std::string const & name, ProcessorFactory factory) Register a processor factory with a given name. |
| std::unique_ptr< ImageProcessor > | createProcessor(std::string const & name) Create a processor instance by name. |
| std::vector< std::string > | getAvailableProcessors() Get all registered processor names. |
| bool | isProcessorAvailable(std::string const & name) Check if a processor type is available. |
Detailed Description
class ImageProcessing::ProcessorRegistry;Registry for different ImageProcessor implementations.
This allows runtime selection of different processing backends and makes it easy to add new implementations without modifying existing code.
Public Functions Documentation
function registerProcessor
static void registerProcessor(
std::string const & name,
ProcessorFactory factory
)Register a processor factory with a given name.
Parameters:
- name Unique name for the processor type
- factory Factory function that creates processor instances
function createProcessor
static std::unique_ptr< ImageProcessor > createProcessor(
std::string const & name
)Create a processor instance by name.
Parameters:
- name Name of the registered processor type
Return: Unique pointer to the processor instance, or nullptr if not found
function getAvailableProcessors
static std::vector< std::string > getAvailableProcessors()Get all registered processor names.
Return: Vector of available processor names
function isProcessorAvailable
static bool isProcessorAvailable(
std::string const & name
)Check if a processor type is available.
Parameters:
- name Name to check
Return: true if available, false otherwise
Updated on 2026-11-13 at 20:25:42 +0000