PLCnext API Documentation 25.0.2.69
|
This class serves as base class of all Library classes in Arp component projects. More...
#include <LibraryBase.hpp>
Public Types | |
using | FactoryMethod = IComponentFactory::FactoryMethod |
The prototype of the component factory method. | |
using | FactoryMethodCompat = IComponentFactory::FactoryMethodCompat |
The deprecated prototype of the component factory method. | |
![]() | |
using | MainEntry = ILibrary &(*)(void) |
This is the prototype of the main entry point of any Arp library which shall be loaded dynamically by the Acf. More... | |
Public Member Functions | |
LibraryBase (const ArpVersion &libraryVersion=ArpVersion{}) | |
Constructs a LibraryBase instance. More... | |
LibraryBase (const LibraryBase &arg)=delete | |
LibraryBase (LibraryBase &&arg) noexcept | |
The default move constructor. More... | |
LibraryBase & | operator= (const LibraryBase &arg)=delete |
LibraryBase & | operator= (LibraryBase &&arg) noexcept |
The default move-assignment operator. More... | |
~LibraryBase (void) override | |
The default destructor. | |
void | Initialize (void) override |
Initializes this library. More... | |
void | Dispose (void) override |
Disposes this library. More... | |
IComponentFactory & | GetComponentFactory (void) override |
Gets the component factory of this library to create instances of its provided components. More... | |
const ArpVersion & | GetBuildVersion (void) const override |
Gets the version of the firmware or SDK which was used to build the shared library. More... | |
const ArpVersion & | GetLibraryVersion (void) const override |
Gets the version of the library provided by its author. More... | |
String | GetLibraryInfoItem (LibraryInfoKind kind) const override |
Gets additional information about the library More... | |
template<class T > | |
void | AddComponentType (void) |
Registers a type of a component of this library. More... | |
template<class T > | |
void | RegisterComponentType (void) |
Registers a type of a component of this library. More... | |
template<class T > | |
void | RegisterComponentType (const String &typeName) |
Registers a type of a component of this library. More... | |
Impl & | GetImpl (void) |
For internal use only. More... | |
const Impl & | GetImpl (void) const |
![]() | |
ILibrary (void)=default | |
The default constructor. | |
ILibrary (ILibrary &&arg) noexcept=default | |
The move constructor. More... | |
ILibrary (const ILibrary &arg)=delete | |
The copy constructor is deleted. More... | |
ILibrary & | operator= (ILibrary &&arg) noexcept=default |
The move assignment operator. More... | |
ILibrary & | operator= (const ILibrary &arg)=delete |
The copy assignment operator is deleted. More... | |
virtual | ~ILibrary (void)=default |
The virtual default destructor. | |
virtual void | Initialize (void)=0 |
Initializes this library. More... | |
virtual void | Dispose (void)=0 |
Disposes this library. More... | |
virtual IComponentFactory & | GetComponentFactory (void)=0 |
Gets the component factory of this library to create instances of its provided components. More... | |
virtual const ArpVersion & | GetBuildVersion (void) const =0 |
Gets the version of the firmware or SDK which was used to build the shared library. More... | |
virtual const ArpVersion & | GetLibraryVersion (void) const =0 |
Gets the version of the library provided by its author. More... | |
virtual String | GetLibraryInfoItem (LibraryInfoKind kind) const =0 |
Gets additional information about the library More... | |
This class serves as base class of all Library classes in Arp component projects.
|
explicit |
Constructs a LibraryBase instance.
libraryVersion | The version of this library. |
|
defaultnoexcept |
The default move constructor.
arg | The argument to move. |
|
inline |
Registers a type of a component of this library.
T | The type of the component to register. |
|
overridevirtual |
Disposes this library.
Implements Arp::Base::Acf::Commons::ILibrary.
|
overridevirtual |
Gets the version of the firmware or SDK which was used to build the shared library.
Implements Arp::Base::Acf::Commons::ILibrary.
|
overridevirtual |
Gets the component factory of this library to create instances of its provided components.
Implements Arp::Base::Acf::Commons::ILibrary.
const LibraryBase::Impl & Arp::Base::Acf::Commons::LibraryBase::GetImpl | ( | void | ) |
For internal use only.
|
overridevirtual |
Gets additional information about the library
Implements Arp::Base::Acf::Commons::ILibrary.
|
overridevirtual |
Gets the version of the library provided by its author.
Implements Arp::Base::Acf::Commons::ILibrary.
|
overridevirtual |
Initializes this library.
Implements Arp::Base::Acf::Commons::ILibrary.
|
defaultnoexcept |
The default move-assignment operator.
arg | The argument to move. |
|
inline |
Registers a type of a component of this library.
DEPRECATED.
T | The type of the component to register. |
typeName | The explicit given type name of the component to register. |
|
inline |
Registers a type of a component of this library.
DEPRECATED.
T | The type of the component to register. |