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>
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.
◆ IComponentFactory()
Arp::System::Acf::IComponentFactory::IComponentFactory |
( |
void |
| ) |
|
|
default |
◆ ~IComponentFactory()
virtual Arp::System::Acf::IComponentFactory::~IComponentFactory |
( |
void |
| ) |
|
|
virtualdefault |
Destructs this instance and frees all resouces.
◆ CreateComponent()
Creates a component of the given typename.
- Parameters
-
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. |
- Returns
- The new component instance, if the specified type could be provided, otherwise
nullptr
.
Implemented in Arp::System::Acf::ComponentFactory.
◆ HasComponentType()
virtual bool Arp::System::Acf::IComponentFactory::HasComponentType |
( |
const String & |
typeName | ) |
|
|
pure virtual |
Determines if this factory provides components of the given typename.
- Parameters
-
typeName | The name of the component type to search for. |
- Returns
true
if the specifeid type could be provided, otherwise false
.
Implemented in Arp::System::Acf::ComponentFactory.
The documentation for this class was generated from the following file: