|
PLCnext API Documentation 23.3.0.32
|
Interface for writing an array or an enumerator. For regular enumerators UndefinedArrayLength is used. More...
#include <IRscWriteEnumerator.hxx>

Public Types | |
| typedef std::shared_ptr< IRscWriteEnumerator > | Ptr |
Public Member Functions | |
| virtual void | BeginWrite (size_t size=UndefinedArrayLength)=0 |
| Begins the operation to write the enumerator. More... | |
| virtual void | WriteNext (const T ¤t)=0 |
| Writes the next enumerator element. More... | |
| virtual RscArrayWriter | WriteNext (size_t arraySize, RscType elementType)=0 |
| Writes the next enumerator element if the element contains an array object. More... | |
| virtual void | EndWrite (void)=0 |
| Ends the enumerator. With an array enumerator all enumerator elements had to be written More... | |
Static Public Attributes | |
| static constexpr size_t | UndefinedArrayLength = std::numeric_limits<size_t>::max() |
Protected Member Functions | |
| IRscWriteEnumerator (void)=default | |
| Constructs an IRscArrayWriteEnumerator instance. | |
| virtual | ~IRscWriteEnumerator (void)=default |
| Destructs this instance and frees all resources. | |
| IRscWriteEnumerator (const IRscWriteEnumerator &arg)=default | |
| IRscWriteEnumerator & | operator= (const IRscWriteEnumerator &arg)=default |
Interface for writing an array or an enumerator. For regular enumerators UndefinedArrayLength is used.
| T | Type of enumerator element |
|
pure virtual |
Begins the operation to write the enumerator.
| size | Number of elements in case of array enumerator. UndefinedArrayLength for regular enumerators |
Implemented in Arp::System::Rsc::Services::RscWriteEnumerator< T >, and Arp::System::Rsc::Services::RscImplWriteEnumerator< T >.
|
pure virtual |
Ends the enumerator. With an array enumerator all enumerator elements had to be written
Implemented in Arp::System::Rsc::Services::RscImplWriteEnumerator< T >, and Arp::System::Rsc::Services::RscWriteEnumerator< T >.
|
pure virtual |
Writes the next enumerator element.
| current | Reference to the next element |
Implemented in Arp::System::Rsc::Services::RscImplWriteEnumerator< T >, and Arp::System::Rsc::Services::RscWriteEnumerator< T >.
|
pure virtual |
Writes the next enumerator element if the element contains an array object.
| arraySize | Number of array elements |
| arrayElementType | RsyType of array elements |
Implemented in Arp::System::Rsc::Services::RscWriteEnumerator< T >, and Arp::System::Rsc::Services::RscImplWriteEnumerator< T >.