| 
    PLCnext API Documentation 25.6.0.37
    
   | 
 
This interface is used by the Acf to create components dynamically through configuration (.acf.config) More...
#include <IComponentFactory.hpp>
Public Types | |
| using | FactoryMethod = IComponent::Ptr(*)(ILibrary &library, const String &componentName) | 
| The prototype of the component factory method, which might be registered to create components. | |
| using | FactoryMethodCompat = IComponent::Ptr(*)(Application &application, const String &componentName) | 
| The deprecated prototype of the component factory method, which might be registered to create components. | |
Public Member Functions | |
| IComponentFactory (void)=default | |
| The default constructor. | |
| IComponentFactory (IComponentFactory &&arg) noexcept=default | |
| The move constructor. More... | |
| IComponentFactory (const IComponentFactory &arg)=delete | |
| The copy constructor is deleted. More... | |
| IComponentFactory & | operator= (IComponentFactory &&arg) noexcept=default | 
| The move assignment operator. More... | |
| IComponentFactory & | operator= (const IComponentFactory &arg)=delete | 
| The copy assignment operator is deleted. More... | |
| virtual | ~IComponentFactory (void)=default | 
| The virtual default destructor. | |
| virtual bool | HasComponentType (const String &typeName)=0 | 
| Determines if this factory provides components of the given type-name. More... | |
| virtual IComponent::Ptr | CreateComponent (const String &typeName, const String &componentName)=0 | 
| Creates a component of the given type-name. More... | |
This interface is used by the Acf to create components dynamically through configuration (.acf.config)
This interface shall implemented by all component factories provided by Acf libraries.
      
  | 
  defaultnoexcept | 
The move constructor.
| arg | The argument to move. | 
      
  | 
  delete | 
The copy constructor is deleted.
| arg | The argument to copy. | 
      
  | 
  pure virtual | 
Creates a component of the given type-name.
| typeName | The C++ type name of the component to search for. | 
| componentName | The name of the new created component. | 
nullptr.
      
  | 
  pure virtual | 
Determines if this factory provides components of the given type-name.
| typeName | The C++ type name of the component to search for. | 
true if the specified type could be provided, otherwise false.
      
  | 
  delete | 
The copy assignment operator is deleted.
| arg | The argument to copy. | 
      
  | 
  defaultnoexcept | 
The move assignment operator.
| arg | The argument to move. |