8#include "Arp/System/Rsc/Services/RemotingReader.hpp"
9#include "Arp/System/Rsc/Services/RemotingWriter.hpp"
11namespace Arp {
namespace System {
namespace Rsc {
namespace Services
28 static void Read(RemotingReader& reader,
RscType valueType,
byte* pResult,
size_t maxStringSize = 0);
29 static void Write(RemotingWriter& writer,
RscType valueType,
const byte* pValue,
size_t maxStringSize = 0);
32 static void Read(RemotingReader& reader, T& value);
35 static void Write(RemotingWriter& writer,
const T& value);
46 RscValue(
void) =
delete;
47 RscValue(
const RscValue& arg) =
delete;
48 RscValue& operator=(
const RscValue& arg) =
delete;
49 ~RscValue(
void) =
delete;
61inline void RscValue::Read(RemotingReader& reader, T& value)
63 RscValue::Read(reader, GetRscTypeFrom(value),
reinterpret_cast<byte*
>(&value));
67inline void RscValue::Write(RemotingWriter& writer,
const T& value)
69 RscValue::Write(writer, GetRscTypeFrom(value),
reinterpret_cast<const byte*
>(&value));
@ System
System components used by the System, Device, Plc or Io domains.
@ Write
Specifies write access to the file. Data can be written to the file and the file pointer can be moved...
@ Read
Specifies read access to the file. Data can be read from the file and the file pointer can be moved....
RscType
Data types supported by RSC.
Definition: RscType.hpp:36
Root namespace for the PLCnext API