|
PLCnext API Documentation 25.6.0.37
|
Provides the infrastructure for dynamic port provision More...
#include <DynamicPortsBuilder.hpp>
Public Member Functions | |
| size_t | GetMaximumNumberOfPorts () const |
| summary>Returns the current number of dynamic ports to provide | |
| size_t | GetNumberOfPorts () const |
| summary>Returns the type definition for the program | |
| const TypeSystem::TypeDefinition & | GetTypeDefinition () const |
| template<typename T > | |
| void | AddPort (const String &portName, T &value, StandardAttribute standardAttributes) |
| Adds a variable as dynamic port More... | |
Static Public Member Functions | |
| template<typename TProgram , size_t MaxNumPorts> | |
| static DynamicPortsBuilder | Create (const String &libraryNamespace, const String &programInstanceName, std::array< byte *, MaxNumPorts > &ports, size_t portsOffset) |
Provides the infrastructure for dynamic port provision
| void Arp::Plc::Commons::Meta::DynamicPortsBuilder::AddPort | ( | const String & | portName, |
| T & | value, | ||
| StandardAttribute | standardAttributes | ||
| ) |
Adds a variable as dynamic port
| portName | Name of the port |
| value | Reference to the value of the port |
| standardAttributes | Definition of attribus for the port (e.g. Input, Output) |
|
static |
< summary>Creates an DynamicPortsProvider for an ProgramType
< remarks>Internal use only. The object is created by DynamicPortsProgramBase