PLCnext API Documentation 24.0.0.71
|
Base class for components providing meta data More...
#include <MetaComponentBase.hpp>
Public Member Functions | |
MetaComponentBase (const char *libraryNamespace) | |
Constructs an MetaComponentBase instance More... | |
~MetaComponentBase () override=default | |
Destructs this object | |
void | SetupSettings (void) |
Sets up the internal DataInfoProvider to enable providing meta data | |
ARP_DEPRECATED ("Call MetaComponentBase::SetupSettings() in the component's SetupSettings() method instead.") void SetupConfig(void) | |
Deprecated! SetupConfig More... | |
ARP_DEPRECATED ("Call MetaComponentBase::Dispose() in the component's Dispose() method instead.") void ResetConfig(void) | |
ResetConfig More... | |
void | Dispose (void) |
Resets the internal DataInfoProvider | |
IDataInfoProvider & | GetDataInfoProvider (bool useBackgroundDomain) override |
Gets the IDataInfoProvider of this component. More... | |
IDataNavigator * | GetDataNavigator (void) override |
Gets the specialized IDataNavigator of this component. More... | |
virtual IDataInfoProvider & | GetDataInfoProvider (bool useBackgroundDomain)=0 |
Gets the IDataInfoProvider of this component. More... | |
virtual IDataNavigator * | GetDataNavigator (void)=0 |
Gets the specialized IDataNavigator of this component. More... | |
Protected Member Functions | |
virtual void | RegisterComponentPorts (void)=0 |
Registers the ports of this component with its DataInfoProvider More... | |
![]() | |
IMetaComponent (void)=default | |
Constructs an IMetaComponent instance. | |
virtual | ~IMetaComponent (void)=default |
Destructs this instance and frees all resources. | |
Protected Attributes | |
DataInfoProvider | dataInfoProvider |
Additional Inherited Members | |
![]() | |
using | Ptr = std::shared_ptr< IMetaComponent > |
std::shared_ptr to IMetaComponent | |
Base class for components providing meta data
Derive from this class as well as from ComponentBase. Call SetupSettings in ComponentBase::SetupSettings() and call Dispose in ComponentBase::Dispose(). These calls are neccessary to setup and dispose the included DataInfoProvider
Arp::Plc::Commons::Meta::MetaComponentBase::MetaComponentBase | ( | const char * | libraryNamespace | ) |
Constructs an MetaComponentBase instance
libraryNamespace | Namensraum der Bibliothek |
Arp::Plc::Commons::Meta::MetaComponentBase::ARP_DEPRECATED | ( | "Call MetaComponentBase::Dispose() in the component's Dispose() method instead." | ) |
ResetConfig
Arp::Plc::Commons::Meta::MetaComponentBase::ARP_DEPRECATED | ( | "Call MetaComponentBase::SetupSettings() in the component's SetupSettings() method instead." | ) |
Deprecated! SetupConfig
|
overridevirtual |
Gets the IDataInfoProvider of this component.
useBackgroundDomain | true if the provider of the background domain should be returned, otherwise false . |
Implements Arp::Plc::Commons::Meta::IMetaComponent.
|
overridevirtual |
Gets the specialized IDataNavigator of this component.
nullptr
if it's not provided.This function is obsolete
Implements Arp::Plc::Commons::Meta::IMetaComponent.
|
protectedpure virtual |
Registers the ports of this component with its DataInfoProvider
Implement this method to make the ports of this component available as variables using DataInfoProvider::AddRoot().