ImFusion SDK 4.3
StreamAlgorithmControllerFactory Class Reference

#include <ImFusion/Stream/StreamPlugin.h>

Factory for controllers for stream algorithms that are registered in the StreamAlgorithmFactory. More...

+ Inheritance diagram for StreamAlgorithmControllerFactory:

Detailed Description

Factory for controllers for stream algorithms that are registered in the StreamAlgorithmFactory.

Public Member Functions

AlgorithmControllercreate (Algorithm *a) const override
 Create controller for a given algorithm instance if possible.
 
- Public Member Functions inherited from AlgorithmControllerFactory
 AlgorithmControllerFactory ()
 
 AlgorithmControllerFactory (std::string module, bool checkLicense=true)
 
DataControllercreateDataController (const std::string &id, const DataList &data) const
 Create data controller.
 
virtual std::vector< std::stringcompatibleDataControllers (const DataList &data) const
 Return list of data controllers compatible with input data. The list contains the data controller id.
 
std::vector< std::stringdataControllerNames () const
 Return all registered algorithm names.
 
template<class T>
void registerDataController (const std::string &name)
 Register data controller. Categories are specified by separating them from the name with ; as separator (e.g. Filters;Gaussian)
 
void unregisterAllDataControllers ()
 Unregister all data controller of this factory.
 
- Public Member Functions inherited from FactoryBase
 FactoryBase ()
 No license check is performed for the module instantiated with this constructor.
 
 FactoryBase (std::string module, bool checkLicense=true)
 
std::string moduleName () const
 Returns the module name of the factory.
 

Additional Inherited Members

- Protected Types inherited from AlgorithmControllerFactory
typedef std::function< std::string(const DataList &data, const std::string &id, DataController **a)> createCompatibleFunc
 
- Protected Member Functions inherited from FactoryBase
virtual ~FactoryBase ()
 Virtual destructor.
 
std::string getComponentPath (const std::string &componentName) const
 Returns the path to the component referred to by name.
 
bool isLicensed (const std::string &name)
 Return true if the license allows the use of the component referred to by name.
 
- Static Protected Member Functions inherited from FactoryBase
static std::string getComponentPath (const std::string &moduleName, const std::string &componentName)
 Returns the path to the component referred to by name.
 
static bool isLicensed (const std::string &moduleName, const std::string &name)
 Return true if the license allows the use of the component referred to by name.
 
- Protected Attributes inherited from AlgorithmControllerFactory
std::vector< createCompatibleFuncm_dataControllers
 
std::unordered_map< std::type_index, std::stringm_dataControllerNames
 
- Protected Attributes inherited from FactoryBase
std::string m_factoryModule
 
bool m_checkLicense
 

Member Function Documentation

◆ create()

AlgorithmController * create ( Algorithm * a) const
overridevirtual

Create controller for a given algorithm instance if possible.

Implements AlgorithmControllerFactory.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close