8#include "Arp/Base/Rsc/Commons/IRscReadEnumerator.hxx"
9#include "Arp/Base/Commons/Exceptions/InvalidOperationException.hpp"
11namespace Arp::Base::Rsc::Commons::Services
82 return this->Next(current);
98 return this->NextArray(current);
This exception is thrown when an operation cannot be executed because the related state is invalid.
Definition: InvalidOperationException.hpp:16
Interface for reading a arrays or enumerations.
Definition: IRscReadEnumerator.hxx:19
Utility class to read an array of primitive types from RscVariant. This class uses the array informat...
Definition: RscArrayReader.hpp:22
Implements IRscReadEnumerator to be used from within service implementations.
Definition: RscImplReadEnumerator.hxx:24
size_t BeginRead(void) override
This operation is called at the begin of reading the enumeration.
Definition: RscImplReadEnumerator.hxx:59
NextFunction Next
Delegate to ReadNext method of service implementation.
Definition: RscImplReadEnumerator.hxx:36
RscImplReadEnumerator(void)
Constructs an RscImplReadEnumerator instance.
bool ReadNext(T &) override
Reads the next element of the enumeration.
Definition: RscImplReadEnumerator.hxx:76
void EndRead(void) override
This operation is called at the end of reading the enumeration to perform any cleanup code or similar...
Definition: RscImplReadEnumerator.hxx:106
EndFunction End
Delegate to EndRead method of service implementation.
Definition: RscImplReadEnumerator.hxx:38
std::function< void()> EndFunction
The prototype of the End function.
Definition: RscImplReadEnumerator.hxx:29
std::function< bool(T &)> NextFunction
The prototype of the Next function.
Definition: RscImplReadEnumerator.hxx:27
std::function< bool(RscArrayReader &)> NextArrayFunction
The prototype of the NextArray function.
Definition: RscImplReadEnumerator.hxx:28
NextArrayFunction NextArray
Delegate to ReadNext method for array elements of service implementation.
Definition: RscImplReadEnumerator.hxx:37
std::function< size_t()> BeginFunction
The prototype of the Begin function.
Definition: RscImplReadEnumerator.hxx:26
BeginFunction Begin
Delegate to BeginRead method of service implementation.
Definition: RscImplReadEnumerator.hxx:35