![]() |
Thermal Camera SDK 10.0.1
SDK for Optris Thermal Cameras
|
Factory instantiating IRImager implementations. More...
#include <IRImagerFactory.h>
Public Member Functions | |
OTC_SDK_API std::shared_ptr< IRImager > | create (const std::string &name) noexcept(false) |
Creates an instance of an IRImager implementation. | |
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. | |
Static Public Member Functions | |
static OTC_SDK_API IRImagerFactory & | getInstance () noexcept |
Returns an instance of the 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.
OTC_SDK_API std::shared_ptr< IRImager > optris::IRImagerFactory::create | ( | const std::string & | name | ) |
Creates an instance of an IRImager implementation.
[in] | name | of the implementation to instantiate. Case insensitive. |
SDKException | if the instantiation fails or an implementation with the given name is not available. |
|
staticnoexcept |
Returns an instance of the IRImagerFactory.
Only one instance per program is available.
OTC_SDK_API void optris::IRImagerFactory::registerCreator | ( | const std::string & | name, |
std::shared_ptr< IRImagerCreator > | creator ) |