PLCnext API Documentation
22.9.0.33
|
Implements IRscWriteEnumerator for the service implementations. This should only be used in the implementation. The write callbacks have to be implemented and set by the service. More...
#include <RscImplWriteEnumerator.hxx>
Public Types | |
typedef std::function< void(size_t)> | BeginFunction |
typedef std::function< void(const T &)> | NextFunction |
typedef std::function< RscArrayWriter(size_t, RscType)> | NextArrayFunction |
typedef std::function< void()> | EndFunction |
![]() | |
typedef std::shared_ptr< IRscWriteEnumerator > | Ptr |
Public Member Functions | |
RscImplWriteEnumerator (void)=default | |
Constructs an RscProxyArrayWriteEnumerator instance. More... | |
RscImplWriteEnumerator (const RscImplWriteEnumerator &arg)=default | |
Copy constructor. More... | |
RscImplWriteEnumerator & | operator= (const RscImplWriteEnumerator &arg)=default |
Assignment operator. More... | |
~RscImplWriteEnumerator (void)=default | |
Destructs this instance and frees all resources. More... | |
void | BeginWrite (size_t) override |
Begins the operation to write the enumerator. More... | |
void | WriteNext (const T &) override |
Writes the next enumerator element. More... | |
RscArrayWriter | WriteNext (size_t arraySize, RscType elementType) override |
Writes the next enumerator element if the element contains an array object. More... | |
void | EndWrite (void) override |
Ends the enumerator. With an array enumerator all enumerator elements had to be written More... | |
Public Attributes | |
BeginFunction | Begin |
Write callback to BeginWrite implementation of service method. More... | |
NextFunction | Next |
Write callback to WriteNext implementation of service method. More... | |
NextArrayFunction | NextArray |
Write callback to WriteNext implementation for array elements of service method. More... | |
EndFunction | End |
Write callback to EndWrite implementation of service method. More... | |
Additional Inherited Members | |
![]() | |
static constexpr size_t | UndefinedArrayLength = std::numeric_limits<size_t>::max() |
![]() | |
IRscWriteEnumerator (void)=default | |
Constructs an IRscArrayWriteEnumerator instance. More... | |
virtual | ~IRscWriteEnumerator (void)=default |
Destructs this instance and frees all resources. More... | |
IRscWriteEnumerator (const IRscWriteEnumerator &arg)=default | |
IRscWriteEnumerator & | operator= (const IRscWriteEnumerator &arg)=default |
Implements IRscWriteEnumerator for the service implementations. This should only be used in the implementation. The write callbacks have to be implemented and set by the service.
|
default |
Constructs an RscProxyArrayWriteEnumerator instance.
|
default |
Copy constructor.
|
default |
Destructs this instance and frees all resources.
|
inlineoverridevirtual |
Begins the operation to write the enumerator.
size | Number of elements in case of array enumerator. UndefinedArrayLength for regular enumerators |
Implements Arp::System::Rsc::Services::IRscWriteEnumerator< T >.
|
inlineoverridevirtual |
Ends the enumerator. With an array enumerator all enumerator elements had to be written
Implements Arp::System::Rsc::Services::IRscWriteEnumerator< T >.
|
default |
Assignment operator.
|
inlineoverridevirtual |
Writes the next enumerator element.
current | Reference to the next element |
Implements Arp::System::Rsc::Services::IRscWriteEnumerator< T >.
|
inlineoverridevirtual |
Writes the next enumerator element if the element contains an array object.
arraySize | Number of array elements |
arrayElementType | RsyType of array elements |
Implements Arp::System::Rsc::Services::IRscWriteEnumerator< T >.
BeginFunction Arp::System::Rsc::Services::RscImplWriteEnumerator< T >::Begin |
Write callback to BeginWrite implementation of service method.
EndFunction Arp::System::Rsc::Services::RscImplWriteEnumerator< T >::End |
Write callback to EndWrite implementation of service method.
NextFunction Arp::System::Rsc::Services::RscImplWriteEnumerator< T >::Next |
Write callback to WriteNext implementation of service method.
NextArrayFunction Arp::System::Rsc::Services::RscImplWriteEnumerator< T >::NextArray |
Write callback to WriteNext implementation for array elements of service method.