PLCnext API Documentation
22.9.0.33
|
Interface for reading an array or an enumerator. For regular enumerators UndefinedArrayLength is used. More...
#include <IRscReadEnumerator.hxx>
Public Types | |
typedef std::shared_ptr< IRscReadEnumerator > | Ptr |
Public Member Functions | |
virtual size_t | BeginRead (void)=0 |
Begins the operation to read the enumerator. More... | |
virtual bool | ReadNext (T ¤t)=0 |
Reads the next enumerator element. More... | |
virtual bool | ReadNext (RscArrayReader ¤t)=0 |
Reads the next array enumerator element. Use this method only, if element contains object with an array. More... | |
virtual void | EndRead (void)=0 |
Ends the operation to read the enumerator. All enumerator elements had to be already been read. More... | |
Static Public Attributes | |
static constexpr size_t | UndefinedArrayLength = std::numeric_limits<size_t>::max() |
Protected Member Functions | |
IRscReadEnumerator (void)=default | |
Constructs an IRscArrayWriteEnumerator instance. More... | |
virtual | ~IRscReadEnumerator (void)=default |
Destructs this instance and frees all resources. More... | |
IRscReadEnumerator (const IRscReadEnumerator &arg)=default | |
IRscReadEnumerator & | operator= (const IRscReadEnumerator &arg)=default |
Interface for reading an array or an enumerator. For regular enumerators UndefinedArrayLength is used.
T | Type of enumerator element |
|
protecteddefault |
Constructs an IRscArrayWriteEnumerator instance.
|
protectedvirtualdefault |
Destructs this instance and frees all resources.
|
pure virtual |
Begins the operation to read the enumerator.
Implemented in Arp::System::Rsc::Services::RscReadEnumerator< T >, and Arp::System::Rsc::Services::RscImplReadEnumerator< T >.
|
pure virtual |
Ends the operation to read the enumerator. All enumerator elements had to be already been read.
Implemented in Arp::System::Rsc::Services::RscReadEnumerator< T >, and Arp::System::Rsc::Services::RscImplReadEnumerator< T >.
|
pure virtual |
Reads the next array enumerator element. Use this method only, if element contains object with an array.
current | Reference to RscArrayReader. The given RscArrayReader will be configured by this method. |
Implemented in Arp::System::Rsc::Services::RscReadEnumerator< T >, and Arp::System::Rsc::Services::RscImplReadEnumerator< T >.
|
pure virtual |
Reads the next enumerator element.
current | Place to store next element |
Implemented in Arp::System::Rsc::Services::RscReadEnumerator< T >, and Arp::System::Rsc::Services::RscImplReadEnumerator< T >.