PLCnext API Documentation 23.6.0.37
|
Implements IRscReadEnumeratorfor the service implementations. This should only be used in the implementation. The read callbacks have to be implemented and set by the service. More...
#include <RscImplReadEnumerator.hxx>
Public Types | |
typedef std::function< size_t()> | BeginFunction |
typedef std::function< bool(T &)> | NextFunction |
typedef std::function< bool(RscArrayReader &)> | NextArrayFunction |
typedef std::function< void()> | EndFunction |
![]() | |
typedef std::shared_ptr< IRscReadEnumerator > | Ptr |
Public Member Functions | |
RscImplReadEnumerator (void)=default | |
Constructs an RscImplReadEnumerator instance. | |
RscImplReadEnumerator (const RscImplReadEnumerator &arg)=default | |
Copy constructor. | |
RscImplReadEnumerator & | operator= (const RscImplReadEnumerator &arg)=default |
Assignment operator. | |
~RscImplReadEnumerator (void)=default | |
Destructs this instance and frees all resources. | |
size_t | BeginRead (void) override |
Begins the operation to read the enumerator. More... | |
bool | ReadNext (T &) override |
Reads the next enumerator element. More... | |
bool | ReadNext (RscArrayReader ¤t) override |
Reads the next array enumerator element. Use this method only, if element contains object with an array. More... | |
void | EndRead (void) override |
Ends the operation to read the enumerator. All enumerator elements had to be already been read. More... | |
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... | |
Additional Inherited Members | |
![]() | |
static constexpr size_t | UndefinedArrayLength = std::numeric_limits<size_t>::max() |
![]() | |
IRscReadEnumerator (void)=default | |
Constructs an IRscArrayWriteEnumerator instance. | |
virtual | ~IRscReadEnumerator (void)=default |
Destructs this instance and frees all resources. | |
IRscReadEnumerator (const IRscReadEnumerator &arg)=default | |
IRscReadEnumerator & | operator= (const IRscReadEnumerator &arg)=default |
Implements IRscReadEnumeratorfor the service implementations. This should only be used in the implementation. The read callbacks have to be implemented and set by the service.
|
inlineoverridevirtual |
Begins the operation to read the enumerator.
Implements Arp::System::Rsc::Services::IRscReadEnumerator< T >.
|
inlineoverridevirtual |
Ends the operation to read the enumerator. All enumerator elements had to be already been read.
Implements Arp::System::Rsc::Services::IRscReadEnumerator< T >.
|
inlineoverridevirtual |
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. |
Implements Arp::System::Rsc::Services::IRscReadEnumerator< T >.
|
inlineoverridevirtual |
Reads the next enumerator element.
current | Place to store next element |
Implements Arp::System::Rsc::Services::IRscReadEnumerator< T >.