libcamera  v0.3.1+12-19bbca3c
Supporting cameras in Linux since 2019
Public Member Functions | Static Public Member Functions | List of all members
libcamera::ipa::CameraSensorHelperFactoryBase Class Referenceabstract

Base class for camera sensor helper factories. More...

Inheritance diagram for libcamera::ipa::CameraSensorHelperFactoryBase:
Inheritance graph
[legend]

Public Member Functions

 CameraSensorHelperFactoryBase (const std::string name)
 Construct a camera sensor helper factory base. More...
 

Static Public Member Functions

static std::unique_ptr< CameraSensorHelpercreate (const std::string &name)
 Create an instance of the CameraSensorHelper corresponding to a named factory. More...
 
static std::vector< CameraSensorHelperFactoryBase * > & factories ()
 Retrieve the list of all camera sensor helper factories. More...
 

Detailed Description

Base class for camera sensor helper factories.

The CameraSensorHelperFactoryBase class is the base of all specializations of the CameraSensorHelperFactory class template. It implements the factory registration, maintains a registry of factories, and provides access to the registered factories.

Constructor & Destructor Documentation

◆ CameraSensorHelperFactoryBase()

libcamera::ipa::CameraSensorHelperFactoryBase::CameraSensorHelperFactoryBase ( const std::string  name)

Construct a camera sensor helper factory base.

Parameters
[in]nameName of the camera sensor helper class

Creating an instance of the factory base registers it with the global list of factories, accessible through the factories() function.

The factory name is used to look up factories and shall be unique.

Member Function Documentation

◆ create()

std::unique_ptr< CameraSensorHelper > libcamera::ipa::CameraSensorHelperFactoryBase::create ( const std::string &  name)
static

Create an instance of the CameraSensorHelper corresponding to a named factory.

Parameters
[in]nameName of the factory
Returns
A unique pointer to a new instance of the CameraSensorHelper subclass corresponding to the named factory or a null pointer if no such factory exists

◆ factories()

std::vector< CameraSensorHelperFactoryBase * > & libcamera::ipa::CameraSensorHelperFactoryBase::factories ( )
static

Retrieve the list of all camera sensor helper factories.

Returns
The list of camera sensor helper factories

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