PLCnext API Documentation 25.0.2.69
|
Implementation of IRscWriteEnumerator used on client side. More...
#include <RscWriteEnumerator.hxx>
Public Member Functions | |
RscWriteEnumerator (RscWriter &rscWriter, bool isArrayEnumerator) | |
Constructs an RscEnumeratorBase instance. More... | |
RscWriteEnumerator (const RscWriteEnumerator &arg)=delete | |
RscWriteEnumerator (RscWriteEnumerator &&arg) noexcept | |
The default move constructor. More... | |
RscWriteEnumerator & | operator= (const RscWriteEnumerator &arg)=delete |
RscWriteEnumerator & | operator= (RscWriteEnumerator &&arg) noexcept |
The default move-assignment operator. More... | |
~RscWriteEnumerator (void) noexcept | |
Destructs this instance and checks if the enumerations has ended. More... | |
void | BeginWrite (size_t currentArrayLength=(size_t) -1) override |
This operation is called at the begin of writing the enumeration. More... | |
void | WriteNext (const T ¤t) override |
Writes the next value of the enumeration. More... | |
RscArrayWriter | WriteNext (size_t arraySize, RscType arrayElementType) override |
Writes the next array value of the enumeration. More... | |
void | EndWrite (void) override |
This operation has to be called when the enumerating has finished. More... | |
![]() | |
IRscWriteEnumerator (void)=default | |
The default constructor. | |
IRscWriteEnumerator (const IRscWriteEnumerator &arg)=delete | |
The deleted copy constructor. More... | |
IRscWriteEnumerator (IRscWriteEnumerator &&arg) noexcept=default | |
The default move constructor. More... | |
IRscWriteEnumerator & | operator= (const IRscWriteEnumerator &arg)=delete |
The deleted assignment operator. More... | |
IRscWriteEnumerator & | operator= (IRscWriteEnumerator &&arg) noexcept=default |
The default move-assignment operator. More... | |
virtual | ~IRscWriteEnumerator (void)=default |
Destructs this instance and frees all resources. | |
virtual void | BeginWrite (size_t size=UndefinedArrayLength)=0 |
Begins the writing of the enumeration. More... | |
virtual void | WriteNext (const T ¤t)=0 |
Writes the next enumeration value. More... | |
virtual RscArrayWriter | WriteNext (size_t arraySize, RscType elementType)=0 |
Writes the next enumeration value if the value contains an array object. More... | |
virtual void | EndWrite (void)=0 |
Ends this enumerator while all values shall be written if this is an array enumeration. More... | |
Additional Inherited Members | |
![]() | |
using | Ptr = std::shared_ptr< IRscWriteEnumerator > |
The pointer type of this class. | |
![]() | |
static constexpr size_t | UndefinedArrayLength = std::numeric_limits<size_t>::max() |
Determines an undefined array length. | |
Implementation of IRscWriteEnumerator used on client side.
|
inline |
Constructs an RscEnumeratorBase instance.
T | The enumerated type. |
rscWriter | The Rsc writer to write the data. |
isArrayEnumerator | Determines if it's an standard or array enumeration. |
|
inlinedefaultnoexcept |
The default move constructor.
T | The enumerated type. |
arg | The argument to move. |
|
inlinedefaultnoexcept |
Destructs this instance and checks if the enumerations has ended.
T | The enumerated type. |
|
inlineoverridevirtual |
This operation is called at the begin of writing the enumeration.
currentArrayLength | The length of the current array to write, for standard enumerator this should default to -1 . |
T | The enumerated type. |
Implements Arp::Base::Rsc::Commons::IRscWriteEnumerator< T >.
|
inlineoverridevirtual |
This operation has to be called when the enumerating has finished.
This operation checks if all values has been written and writes the end tag to signal the end of enumeration (in case of standard enumerations).
Implements Arp::Base::Rsc::Commons::IRscWriteEnumerator< T >.
|
defaultnoexcept |
The default move-assignment operator.
T | The enumerated type. |
arg | The argument to assign. |
|
inlineoverridevirtual |
Writes the next value of the enumeration.
T | The enumerated type. |
current | The current value to write. |
Implements Arp::Base::Rsc::Commons::IRscWriteEnumerator< T >.
|
inlineoverridevirtual |
Writes the next array value of the enumeration.
T | The enumerated type. |
arraySize | The size of the array to write. |
arrayElementType | The element type of the array to write. |
Implements Arp::Base::Rsc::Commons::IRscWriteEnumerator< T >.