PLCnext API Documentation 25.0.2.69
|
Writes marshalled data of RSC services. More...
#include <RscWriter.hpp>
Public Member Functions | |
RscWriter (Stream &remoteStream) | |
Constructs a RscWriter instance. More... | |
RscWriter (const RscWriter &arg) | |
The default copy constructor. More... | |
RscWriter (RscWriter &&arg) noexcept | |
The default move constructor. More... | |
RscWriter & | operator= (const RscWriter &arg) |
The default copy-assignment operator. More... | |
RscWriter & | operator= (RscWriter &&arg) noexcept |
The default move-assignment operator. More... | |
~RscWriter (void) | |
The default destructor. | |
RscStream | GetStream (void) |
Gets a stream initialized by this instance. More... | |
RscStreamWriter | GetStreamWriter (void) |
Gets a stream reader initialized by this instance. More... | |
void | Write (const RscPtr &value, bool omitTag=false) |
Writes a value to RSC. More... | |
void | Write (const RscConstPtr &value, bool omitTag=false) |
void | Write (const String &value, bool omitTag=false) |
Writes a value to RSC. More... | |
void | Write (const DateTime &value, bool omitTag=false) |
Writes a value to RSC. More... | |
void | Write (const SecurityToken &value, bool omitTag=false) |
Writes a value to RSC. More... | |
void | Write (RscStream stream, bool omitTag=false) |
Writes a value to RSC. More... | |
void | Write (RscVariantBase &result, bool omitTag=false) |
template<RscEnumType T> | |
void | Write (const T &value, bool omitTag=false) |
Writes a value to RSC. More... | |
template<RscPrimitiveType T> | |
void | Write (const T &value, bool omitTag=false) |
template<RscClassType T> | |
void | Write (const T &value, bool omitTag=false) |
template<RscSerializableType T> | |
void | Write (const T &value, bool omitTag=false) |
template<int N> | |
void | Write (const RscVariant< N > &result, bool omitTag=false) |
Writes a value to RSC. More... | |
template<class T > | |
void | Write (const std::vector< T > &data, bool omitTag=false) |
Writes an array to RSC. More... | |
template<class T > | |
void | Write (const std::vector< std::vector< T > > &data, bool omitTag=false) |
Writes an array of arrays to RSC. More... | |
template<class T , size_t N> | |
void | Write (const std::array< T, N > &data, bool omitTag=false) |
Writes an array to RSC. More... | |
void | WriteTag (RscType tag) |
Writes a data tag to RSC. More... | |
void | WriteFieldCount (size_t fieldCount) |
Writes the field count of a struct to RSC. More... | |
void | WriteArrayLength (size_t arraySize) |
Writes the length of an array to RSC. More... | |
void | WriteStructInfo (size_t fieldCount) |
Writes the struct info to RSC. More... | |
void | WriteEnumeratorTag (RscType tag) |
Writes an enumerator tag to RSC. More... | |
void | WriteConfirmation (bool flush=false) |
Writes a response confirmation to RSC. More... | |
Impl & | GetImpl (void) |
For internal use only. More... | |
const Impl & | GetImpl (void) const |
Writes marshalled data of RSC services.
This class is not intended for direct use, but required by RscGenerator to implement services.
|
explicit |
Constructs a RscWriter instance.
remoteStream | Specifies the initial value of property ... |
|
default |
The default copy constructor.
arg | The argument to copy. |
|
defaultnoexcept |
The default move constructor.
arg | The argument to move. |
const RscWriter::Impl & Arp::Base::Rsc::Commons::Services::RscWriter::GetImpl | ( | void | ) |
For internal use only.
RscStream Arp::Base::Rsc::Commons::Services::RscWriter::GetStream | ( | void | ) |
Gets a stream initialized by this instance.
RscStreamWriter Arp::Base::Rsc::Commons::Services::RscWriter::GetStreamWriter | ( | void | ) |
Gets a stream reader initialized by this instance.
|
default |
The default copy-assignment operator.
arg | The argument to copy. |
|
defaultnoexcept |
The default move-assignment operator.
arg | The argument to move. |
void Arp::Base::Rsc::Commons::Services::RscWriter::Write | ( | const DateTime & | value, |
bool | omitTag = false |
||
) |
Writes a value to RSC.
value | The value to write. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
void Arp::Base::Rsc::Commons::Services::RscWriter::Write | ( | const RscPtr & | value, |
bool | omitTag = false |
||
) |
Writes a value to RSC.
value | The value to write. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
|
inline |
Writes a value to RSC.
value | The value to write. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
void Arp::Base::Rsc::Commons::Services::RscWriter::Write | ( | const SecurityToken & | value, |
bool | omitTag = false |
||
) |
Writes a value to RSC.
value | The value to write. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
|
inline |
Writes an array to RSC.
data | The array to write. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
T | The element type of the array. |
N | The fixed size of the array. |
|
inline |
Writes an array of arrays to RSC.
data | The array to write. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
T | The element type of the array. |
|
inline |
Writes an array to RSC.
data | The array to write. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
T | The element type of the array. |
void Arp::Base::Rsc::Commons::Services::RscWriter::Write | ( | const String & | value, |
bool | omitTag = false |
||
) |
Writes a value to RSC.
value | The value to write. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
|
inline |
Writes a value to RSC.
value | The value to write. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
void Arp::Base::Rsc::Commons::Services::RscWriter::Write | ( | RscStream | stream, |
bool | omitTag = false |
||
) |
Writes a value to RSC.
stream | The stream to write. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
void Arp::Base::Rsc::Commons::Services::RscWriter::WriteArrayLength | ( | size_t | value | ) |
Writes the length of an array to RSC.
value | The array length to write. |
void Arp::Base::Rsc::Commons::Services::RscWriter::WriteConfirmation | ( | bool | flush = false | ) |
Writes a response confirmation to RSC.
flush | true if all buffered data shall be flushed to RSC, otherwise false . |
void Arp::Base::Rsc::Commons::Services::RscWriter::WriteEnumeratorTag | ( | RscType | tag | ) |
Writes an enumerator tag to RSC.
tag | The enumerator tag to write. |
void Arp::Base::Rsc::Commons::Services::RscWriter::WriteFieldCount | ( | size_t | value | ) |
Writes the field count of a struct to RSC.
value | The field count to write. |
void Arp::Base::Rsc::Commons::Services::RscWriter::WriteStructInfo | ( | size_t | fieldCount | ) |
Writes the struct info to RSC.
fieldCount | The field count of the struct. |
void Arp::Base::Rsc::Commons::Services::RscWriter::WriteTag | ( | RscType | tag | ) |
Writes a data tag to RSC.
tag | The data tag to write. |