PLCnext API Documentation 25.0.2.69
|
This class might be used to marshal unstructured stream data as bytes. More...
#include <RscStream.hpp>
Public Member Functions | |
RscStream (void) | |
Constructs an empty RscStream instance. | |
RscStream (Stream &stream) | |
Constructs an RscStream for reading or writing data from or to a Stream. More... | |
RscStream (const RscStreamReader &rscStreamReader) | |
Constructs a RscStream instance for deserializing data. More... | |
RscStream (const RscStreamWriter &rscStreamWriter) | |
Constructs a RscStream instance for serializing data. More... | |
RscStreamReader | GetRscStreamReader (void) |
Gets the stream reader to deserialize data from RSC. More... | |
RscStreamWriter | GetRscStreamWriter (void) |
Gets the stream writer to serialize data to RSC. More... | |
void | Serialize (void) |
Reads the stream data from the supplied Stream and serialize it to RSC. | |
void | Deserialize (void) |
Deserializes the stream data from RSC and writes it to the supplied Stream. | |
void | SerializeTo (RscWriter &writer) |
Reads the stream data from the supplied Stream while serializing it to RSC. It the Stream was not supplied, the data is read from RSC. More... | |
void | SerializeTo (RscStreamWriter &writer) |
Reads the stream data from the supplied Stream while serializing it to RSC. It the Stream was not supplied, the data is read from RSC. More... | |
void | DeserializeFrom (RscReader &reader) |
Writes the stream data to the supplied Stream while deserializing it from RSC. It the Stream was not supplied, the data is written to RSC. More... | |
void | DeserializeFrom (RscStreamReader &reader) |
Writes the stream data to the supplied Stream while deserializing it from RSC. It the Stream was not supplied, the data is written to RSC. More... | |
void | ReadFrom (Stream &stream) |
Reads the stream data from the given Stream while serializing it to RSC or another stream. If another Stream was supplied by construction, the data is read from it. More... | |
void | WriteTo (Stream &stream) |
Writes the stream data to the given Stream while deserializing it from RSC or another stream. If another Stream was supplied by construction, the data is written to it. More... | |
void | Skip (void) |
Skips any remaining remoting data during deserialization, if any error occurs. | |
This class might be used to marshal unstructured stream data as bytes.
This class serves as adapter between RSC streams and streams from Arp::Base::Commons::Io
, e.g. file streams.
Arp::Base::Rsc::Commons::RscStream::RscStream | ( | Stream & | stream | ) |
Constructs an RscStream for reading or writing data from or to a Stream.
stream | The stream to adapt. |
Arp::Base::Rsc::Commons::RscStream::RscStream | ( | const RscStreamReader & | rscStreamReader | ) |
Constructs a RscStream instance for deserializing data.
rscStreamReader | The stream reader to read the data from. |
Arp::Base::Rsc::Commons::RscStream::RscStream | ( | const RscStreamWriter & | rscStreamWriter | ) |
Constructs a RscStream instance for serializing data.
rscStreamWriter | The stream writer to write the data to. |
void Arp::Base::Rsc::Commons::RscStream::DeserializeFrom | ( | RscReader & | reader | ) |
Writes the stream data to the supplied Stream while deserializing it from RSC. It the Stream was not supplied, the data is written to RSC.
reader | The RSC reader to deserialize the stream data from. |
void Arp::Base::Rsc::Commons::RscStream::DeserializeFrom | ( | RscStreamReader & | reader | ) |
Writes the stream data to the supplied Stream while deserializing it from RSC. It the Stream was not supplied, the data is written to RSC.
reader | The RSC stream reader to deserialize the stream data from. |
RscStreamReader Arp::Base::Rsc::Commons::RscStream::GetRscStreamReader | ( | void | ) |
Gets the stream reader to deserialize data from RSC.
InvalidOperationException | If this instance was not constructed with a RscStreamReader. |
RscStreamWriter Arp::Base::Rsc::Commons::RscStream::GetRscStreamWriter | ( | void | ) |
Gets the stream writer to serialize data to RSC.
InvalidOperationException | If this instance was not constructed with a RscStreamWriter. |
void Arp::Base::Rsc::Commons::RscStream::ReadFrom | ( | Stream & | stream | ) |
Reads the stream data from the given Stream while serializing it to RSC or another stream. If another Stream was supplied by construction, the data is read from it.
stream | The stream to read the data from. |
void Arp::Base::Rsc::Commons::RscStream::SerializeTo | ( | RscStreamWriter & | writer | ) |
Reads the stream data from the supplied Stream while serializing it to RSC. It the Stream was not supplied, the data is read from RSC.
writer | The RSC stream writer to serialize the stream data to. |
void Arp::Base::Rsc::Commons::RscStream::SerializeTo | ( | RscWriter & | writer | ) |
Reads the stream data from the supplied Stream while serializing it to RSC. It the Stream was not supplied, the data is read from RSC.
writer | The RSC writer to serialize the stream data to. |
void Arp::Base::Rsc::Commons::RscStream::WriteTo | ( | Stream & | stream | ) |
Writes the stream data to the given Stream while deserializing it from RSC or another stream. If another Stream was supplied by construction, the data is written to it.
stream | The stream to write the data to. |