PLCnext API Documentation 25.0.2.69
|
Interface for reading a arrays or enumerations. More...
#include <IRscReadEnumerator.hxx>
Public Types | |
using | Ptr = std::shared_ptr< IRscReadEnumerator > |
The pointer type of this type. | |
Public Member Functions | |
IRscReadEnumerator (void)=default | |
The default constructor. | |
IRscReadEnumerator (const IRscReadEnumerator &arg)=delete | |
The deleted copy constructor. More... | |
IRscReadEnumerator (IRscReadEnumerator &&arg) noexcept=default | |
The default move constructor. More... | |
IRscReadEnumerator & | operator= (const IRscReadEnumerator &arg)=delete |
The deleted assignment operator. More... | |
IRscReadEnumerator & | operator= (IRscReadEnumerator &&arg) noexcept=default |
The default move-assignment operator. More... | |
virtual | ~IRscReadEnumerator (void)=default |
Destructs this instance and frees all resources. | |
virtual size_t | BeginRead (void)=0 |
Begins to read the enumeration values. More... | |
virtual bool | ReadNext (T ¤t)=0 |
Reads the next enumeration value. More... | |
virtual bool | ReadNext (RscArrayReader ¤t)=0 |
Reads the next array object. Use this method only, if the current enumerated value contains an array object. More... | |
virtual void | EndRead (void)=0 |
Call this operation when all enumeration values has been read, to perform checks and cleanup. More... | |
Interface for reading a arrays or enumerations.
T | Type of enumeration elements. |
|
delete |
The deleted copy constructor.
arg | The argument to copy. |
|
defaultnoexcept |
The default move constructor.
arg | The argument to move. |
|
pure virtual |
Begins to read the enumeration values.
Implemented in Arp::Base::Rsc::Commons::Services::RscImplReadEnumerator< T >, and Arp::Base::Rsc::Commons::Services::RscReadEnumerator< T >.
|
pure virtual |
Call this operation when all enumeration values has been read, to perform checks and cleanup.
This operation throws an exception, if not all values of the enumeration were read.
Implemented in Arp::Base::Rsc::Commons::Services::RscImplReadEnumerator< T >, and Arp::Base::Rsc::Commons::Services::RscReadEnumerator< T >.
|
delete |
The deleted assignment operator.
arg | The argument to copy. |
|
defaultnoexcept |
The default move-assignment operator.
arg | The argument to move. |
|
pure virtual |
Reads the next array object. Use this method only, if the current enumerated value contains an array object.
current | The resulting RscArrayReader , which might be used to read the current array object. |
true
if the enumeration has not ended yet, and the current value is an array object, otherwise false
.Implemented in Arp::Base::Rsc::Commons::Services::RscImplReadEnumerator< T >, and Arp::Base::Rsc::Commons::Services::RscReadEnumerator< T >.
|
pure virtual |
Reads the next enumeration value.
current | The next element which was read. |
true
if the next element could be read, otherwise false
.Implemented in Arp::Base::Rsc::Commons::Services::RscImplReadEnumerator< T >, and Arp::Base::Rsc::Commons::Services::RscReadEnumerator< T >.