PLCnext API Documentation
22.9.0.33
|
Helper class to write a struct from an RscVariant. This class uses the struct information stored in RscVariant. More...
#include <RscStructWriter.hxx>
Public Types | |
using | WriteElementFunction = RscVariant<>::WriteElementFunction |
Public Member Functions | |
RscStructWriter (const RscVariant< MaxStringSize > &structVariant) | |
Constructs an RscStructWriter instance. More... | |
RscStructWriter (const RscStructWriter &arg)=default | |
Copy constructor. More... | |
RscStructWriter & | operator= (const RscStructWriter &arg)=default |
Assignment operator. More... | |
~RscStructWriter (void)=default | |
Destructs this instance and frees all resources. More... | |
template<class T > | |
void | WriteNextField (const T ¤tField) |
Writes the next field with primitive Type. More... | |
void | WriteNextField (const RscVariant< MaxStringSize > ¤tField) |
Writes the next field that is contained in currentField. This method supports RscVariants with array and struct information. More... | |
void | WriteNextField (const RscString< MaxStringSize > ¤tField) |
Writes the next string field. More... | |
Helper class to write a struct from an RscVariant. This class uses the struct information stored in RscVariant.
|
inline |
Constructs an RscStructWriter instance.
|
default |
Copy constructor.
|
default |
Destructs this instance and frees all resources.
|
default |
Assignment operator.
|
inline |
Writes the next string field.
currentField | Reference to RscString |
|
inline |
Writes the next field that is contained in currentField. This method supports RscVariants with array and struct information.
currentField | Reference to RscVariant with data |
|
inline |
Writes the next field with primitive Type.
currentField | Reference to value |
T | Type of value |