|
PLCnext API Documentation 23.9.0.25
|
This interface is used by the Acf to create components dynamiically through configuration (.acf.config), and should be implemented by all component factories provided by an Acf library. More...
#include <IComponentFactory.hpp>

Public Member Functions | |
| IComponentFactory (void)=default | |
| Constructs an IComponentFactory instance. | |
| virtual | ~IComponentFactory (void)=default |
| Destructs this instance and frees all resouces. | |
| virtual bool | HasComponentType (const String &typeName)=0 |
| Determines if this factory provides components of the given typename. More... | |
| virtual IComponent::Ptr | CreateComponent (IApplication &application, const String &componentTypeName, const String &componentName)=0 |
| Creates a component of the given typename. More... | |
This interface is used by the Acf to create components dynamiically through configuration (.acf.config), and should be implemented by all component factories provided by an Acf library.
|
pure virtual |
Creates a component of the given typename.
| application | The application passed to the new created component. |
| componentTypeName | The typename of the component to create. |
| componentName | The name of the new created component. |
nullptr.Implemented in Arp::System::Acf::ComponentFactory.
|
pure virtual |
Determines if this factory provides components of the given typename.
| typeName | The name of the component type to search for. |
true if the specifeid type could be provided, otherwise false.Implemented in Arp::System::Acf::ComponentFactory.