8 #include "Arp/System/Rsc/Services/IRscReadEnumerator.hxx" 10 namespace Arp {
namespace System {
namespace Rsc {
namespace Services
21 typedef std::function<size_t()> BeginFunction;
22 typedef std::function<bool(T&)> NextFunction;
23 typedef std::function<bool(RscArrayReader&)> NextArrayFunction;
24 typedef std::function<void()> EndFunction;
87 return this->
Next(current);
NextArrayFunction NextArray
Write callback to ReadNext implementation for array elements of service method.
Definition: RscImplReadEnumerator.hxx:50
size_t BeginRead(void) override
Begins the operation to read the enumerator.
Definition: RscImplReadEnumerator.hxx:71
void EndRead(void) override
Ends the operation to read the enumerator. All enumerator elements had to be already been read...
Definition: RscImplReadEnumerator.hxx:101
Helper class to read an array of primtive types from an RscVariant. This class uses the array informa...
Definition: RscArrayReader.hpp:22
bool ReadNext(T &) override
Reads the next enumerator element.
Definition: RscImplReadEnumerator.hxx:81
This exception is used when a method call is invalid for object's current state.
Definition: InvalidOperationException.hpp:14
RscImplReadEnumerator(void)=default
Constructs an RscImplReadEnumerator instance.
Interface for reading an array or an enumerator. For regular enumerators UndefinedArrayLength is used...
Definition: IRscReadEnumerator.hxx:20
BeginFunction Begin
Read callback to BeginRead implementation of service method.
Definition: RscImplReadEnumerator.hxx:40
Implements IRscReadEnumeratorfor the service implementations. This should only be used in the impleme...
Definition: RscImplReadEnumerator.hxx:18
Root namespace for the PLCnext API
~RscImplReadEnumerator(void)=default
Destructs this instance and frees all resources.
EndFunction End
Write callback to EndRead implementation of service method.
Definition: RscImplReadEnumerator.hxx:55
System components used by the System, Device, Plc or Io domains.
RscImplReadEnumerator & operator=(const RscImplReadEnumerator &arg)=default
Assignment operator.
NextFunction Next
Write callback to ReadNext implementation of service method.
Definition: RscImplReadEnumerator.hxx:45