These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.
optris::IRImagerFactory
Factory instantiating IRImager implementations.
The factory is implemented based on the Singleton design pattern. As a consequence, you have to use the IRImagerFactory::getInstance() method to interact with it.
Public static functions
getInstance
static OTC_SDK_API IRImagerFactory & getInstance()
Returns an instance of the IRImagerFactory.
Only one instance per program is available.
Returns: IRImagerFactory instance.
Public functions
create
OTC_SDK_API std::shared_ptr< IRImager > create(const std::string &name) noexcept(false)
Creates an instance of an IRImager implementation.
Parameters
| Name | Description |
|---|---|
name |
of the implementation to instantiate. The SDK supports the following options: - native - IRImager implementation that supports native USB and Ethernet access to Optris Imagers. (case insensitive) |
Returns: shared pointer to created IRImager instance.
Exceptions
| Name | Description |
|---|---|
SDKException |
if the instantiation fails or an implementation with the given name is not available. |
registerCreator
OTC_SDK_API void registerCreator(const std::string &name, std::shared_ptr< IRImagerCreator > creator)
Registers an creator for an IRImager implementation with the given name.
Existing creators with the same name will be overriden.
Parameters