8 #include "Arp/System/Rsc/Services/RscType.hpp" 10 namespace Arp {
namespace System {
namespace Rsc {
namespace Services
25 typedef std::shared_ptr<IRscWriteEnumerator> Ptr;
36 virtual void BeginWrite(
size_t size = UndefinedArrayLength) = 0;
40 virtual void WriteNext(
const T& current) = 0;
56 static constexpr
size_t UndefinedArrayLength = std::numeric_limits<size_t>::max();
virtual void WriteNext(const T ¤t)=0
Writes the next enumerator element.
Helper class to read an array of primtive types from an RscVariant. This class uses the array informa...
Definition: RscArrayWriter.hpp:21
virtual ~IRscWriteEnumerator(void)=default
Destructs this instance and frees all resources.
IRscWriteEnumerator(void)=default
Constructs an IRscArrayWriteEnumerator instance.
virtual void BeginWrite(size_t size=UndefinedArrayLength)=0
Begins the operation to write the enumerator.
RscType
Datatypes supported by Rsc. Values are identical with CommonRemoting::RemotingMarshalType. Only supported types of RemotingMarshalType are included.
Definition: RscType.hpp:27
Root namespace for the PLCnext API
virtual void EndWrite(void)=0
Ends the enumerator. With an array enumerator all enumerator elements had to be written
Interface for writing an array or an enumerator. For regular enumerators UndefinedArrayLength is used...
Definition: IRscWriteEnumerator.hxx:22
System components used by the System, Device, Plc or Io domains.