8#include "Arp/Base/Core/delegate.hxx"
9#include "Arp/Base/Rsc/Commons/IRscWriteEnumerator.hxx"
10#include "Arp/Base/Rsc/Commons/RscArrayWriter.hpp"
13namespace Arp::Base::Rsc::Commons::Services
79 return this->Next(current);
96 return this->NextArray(arraySize, elementType);
This exception is thrown when an operation cannot be executed because the related state is invalid.
Definition: InvalidOperationException.hpp:16
Interface for writing an array enumeration or enumeration of unspefied length.
Definition: IRscWriteEnumerator.hxx:20
Helper class to write a dynamic array of primtive types from RscVariant. This class uses the array in...
Definition: RscArrayWriter.hpp:23
Implements IRscWriteEnumerator to be used from within service implementations.
Definition: RscImplWriteEnumerator.hxx:25
void BeginWrite(size_t) override
This operation is called at the begin of writing the enumeration.
Definition: RscImplWriteEnumerator.hxx:60
EndFunction End
Write delegate to EndWrite implementation of service method.
Definition: RscImplWriteEnumerator.hxx:39
BeginFunction Begin
Write delegate to BeginWrite implementation of service method.
Definition: RscImplWriteEnumerator.hxx:36
NextFunction Next
Write delegate to WriteNext implementation of service method.
Definition: RscImplWriteEnumerator.hxx:37
void EndWrite(void) override
This operation is called at the end of writing the enumeration to perform any flushing code or simila...
Definition: RscImplWriteEnumerator.hxx:104
std::function< void()> EndFunction
The prototype of the End function.
Definition: RscImplWriteEnumerator.hxx:30
void WriteNext(const T &) override
Writes the next element of the enumeration.
Definition: RscImplWriteEnumerator.hxx:73
RscImplWriteEnumerator(void)
Constructs an RscImplWriteEnumerator instance.
std::function< RscArrayWriter(size_t, RscType)> NextArrayFunction
The prototype of the NextArray function.
Definition: RscImplWriteEnumerator.hxx:29
std::function< void(size_t)> BeginFunction
The prototype of the Begin function.
Definition: RscImplWriteEnumerator.hxx:27
std::function< void(const T &)> NextFunction
The prototype of the Next function.
Definition: RscImplWriteEnumerator.hxx:28
NextArrayFunction NextArray
Write delegate to WriteNext implementation for array elements of service method.
Definition: RscImplWriteEnumerator.hxx:38