8#include "Arp/System/Core/ArpVersion.hpp"
9#include "Arp/System/Acf/ILibrary.hpp"
10#include "Arp/System/Acf/ComponentFactory.hpp"
12namespace Arp {
namespace System {
namespace Acf
48 void AddComponentFactoryMethod(
const String& componentType, FactoryMethod factoryMethod);
66 return this->buildVersion;
77 this->AddComponentFactoryMethod(
TypeName<T>(), &T::Create);
89 this->AddComponentFactoryMethod(typeName, &T::Create);
This class represents a single application domain for each process and is implemented as singleton.
Definition: AppDomain.hpp:119
This class represents the version of a special SDK or Arp build.
Definition: BasicVersion.hpp:36
This class is used by Acf libraries to provide a component factory of the library specific components...
Definition: ComponentFactory.hpp:17
IComponent::Ptr(* FactoryMethod)(IApplication &application, const String &componentName)
The prototype of the component factory method, which might be registered to create components.
Definition: ComponentFactory.hpp:20
This interface is used by the Acf to create components dynamiically through configuration (....
Definition: IComponentFactory.hpp:19
Any Acf Library shall implement this interface.
Definition: ILibrary.hpp:22
Any Acf Library shall derive from this base class.
Definition: LibraryBase.hpp:21
const Version & GetBuildVersion(void) const override
Gets the build version of the SDK/Firmware which was used to build this library.
Definition: LibraryBase.hpp:64
ComponentFactory componentFactory
This field is used to register library specific component factory methods.
Definition: LibraryBase.hpp:53
void RegisterComponentType(void)
This template operation registers the as template parameter passed component type,...
Definition: LibraryBase.hpp:75
LibraryBase(AppDomain &appDomain, const Version &buildVersion)
Constructs an isntance of class LibraryBase.
virtual ~LibraryBase(void)
The default destructor.
IComponentFactory & GetComponentFactory(void) override
Gets the component factory of this library to create instances of its provided components.
This (meta programming) class provides the C++ typename of the as template argument passed type.
Definition: TypeName.hxx:67
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API