Thermal Camera SDK 10.1.1
SDK for Optris Thermal Cameras
Loading...
Searching...
No Matches
optris::IRImagerFactory Class Reference

Factory instantiating IRImager implementations. More...

#include <IRImagerFactory.h>

Collaboration diagram for optris::IRImagerFactory:
Collaboration graph

Public Member Functions

OTC_SDK_API std::shared_ptr< IRImagercreate (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 IRImagerFactorygetInstance ()
 Returns an instance of the IRImagerFactory.
 

Detailed Description

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.

Member Function Documentation

◆ create()

OTC_SDK_API std::shared_ptr< IRImager > optris::IRImagerFactory::create ( const std::string & name)

Creates an instance of an IRImager implementation.

Parameters
[in]nameof 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
SDKExceptionif the instantiation fails or an implementation with the given name is not available.

◆ getInstance()

static OTC_SDK_API IRImagerFactory & optris::IRImagerFactory::getInstance ( )
static

Returns an instance of the IRImagerFactory.

Only one instance per program is available.

Returns
IRImagerFactory instance.

◆ registerCreator()

OTC_SDK_API void optris::IRImagerFactory::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
[in]nameof the IRImager implementation.
[in]creatorinstantiating the IRImager implementation.

The documentation for this class was generated from the following file: