|
PLCnext API Documentation
22.0.0.43
|
#include <RscWriter.hpp>
Public Member Functions | |
| RscWriter (BinaryWriter2 &remotingWriter, RscClientContext *pClientContext=nullptr) | |
| Constructs an RscWriter instance. More... | |
| RscWriter (const RscWriter &arg)=default | |
| Copy constructor. More... | |
| RscWriter & | operator= (const RscWriter &arg)=default |
| Assignment operator. More... | |
| ~RscWriter (void)=default | |
| Destructs this instance and frees all resources. More... | |
| RscStream | GetStream () |
| Creates an instance of RscStream initialized to write stream data. More... | |
| RemotingWriter & | GetRemotingWriter (void) |
| Returns reference to RemotingWriter More... | |
| void | WriteConfirmation (bool flush=false) |
| Sends a confirmation message to remote station. More... | |
| void | WriteStream (RscStreamAdapter &stream) |
| Writes the data from the supplied stream to remote stream. More... | |
| template<class T > | |
| void | Write (const T &value) |
| Writes an element of T from Rsc. Datatag and format is determined deducted by type of T. More... | |
| template<class T > | |
| void | Write (const T &value, bool writeTag) |
| Writes an element of T from Rsc. Datatag and format is determined deducted by type of T. More... | |
| template<int N> | |
| void | WriteString (const String &value) |
| Writes a string in format Utf-8. More... | |
| template<int N> | |
| void | WriteString (const char(&value)[N]) |
| Writes a string in format Utf-8. More... | |
| template<class T > | |
| void | WriteObject (const T &value) |
| Writes an object. Datatag and format is determined deducted by type of T. This method doesn't support strings. More... | |
| template<int N> | |
| void | WriteObjectString (const String &value) |
| Writes a string in object format as Utf8 string. More... | |
| template<int N> | |
| void | WriteObjectString (const char(&value)[N]) |
| Writes a string in object format as Utf8 string. More... | |
| template<class T > | |
| void | WriteArray (const std::vector< T > &values) |
| Writes an array to Rsc. The data to write has to be stored in a std::vector. More... | |
| template<class T > | |
| void | WriteArray (const std::vector< std::vector< T >> &values) |
| Writes an array of arrays to Rsc. The data to write has to be stored in a std::vector. More... | |
| template<class T , size_t N> | |
| void | WriteArray (const std::array< T, N > &values) |
| Writes an array to Rsc. The data to write has to be stored in a std::array. More... | |
Writes data to Rsc.
|
inline |
Constructs an RscWriter instance.
|
default |
Copy constructor.
|
default |
Destructs this instance and frees all resources.
|
inline |
Returns reference to RemotingWriter
|
inline |
Assignment operator.
|
inline |
Writes an element of T from Rsc. Datatag and format is determined deducted by type of T.
| value | Reference to data |
| T | Type of element to write |
|
inline |
Writes an element of T from Rsc. Datatag and format is determined deducted by type of T.
| value | Reference to data |
| writeTag | if true the tag is written, otherwise it's ommitted. |
| T | Type of element to write |
|
inline |
Writes an array to Rsc. The data to write has to be stored in a std::vector.
| values | Reference to array data to write |
| T | Type of array elements |
|
inline |
Writes an array of arrays to Rsc. The data to write has to be stored in a std::vector.
| values | Reference to array data to write |
| T | Type of array elements |
|
inline |
Writes an array to Rsc. The data to write has to be stored in a std::array.
| values | Reference to array data to write |
| T | Type of array elements |
| N | Size of static array |
|
inline |
Sends a confirmation message to remote station.
| flush | True if internal data buffers should be flushed |
|
inline |
Writes an object. Datatag and format is determined deducted by type of T. This method doesn't support strings.
| value | Reference to element |
| T | Type of element |
|
inline |
Writes a string in object format as Utf8 string.
| value | Reference to string element |
| N | Maximum number of characters |
|
inline |
Writes a string in object format as Utf8 string.
| value | Reference to character array with string to send |
| N | Maximum number of characters |
| void Arp::System::Rsc::Services::RscWriter::WriteStream | ( | RscStreamAdapter & | stream | ) |
Writes the data from the supplied stream to remote stream.
| stream | The stream to write the data from. |
|
inline |
Writes a string in format Utf-8.
| value | Reference to String object |
| N | Maximum number of characters |
|
inline |
Writes a string in format Utf-8.
| value | Reference to character array with string to send |
| N | Maximum number of characters |
1.8.13