PLCnext API Documentation 23.6.0.37
Public Types | Public Member Functions | List of all members
Arp::System::Rsc::Services::RscStructWriter< MaxStringSize > Class Template Reference

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.
 
 RscStructWriter (const RscStructWriter &arg)=default
 Copy constructor.
 
RscStructWriteroperator= (const RscStructWriter &arg)=default
 Assignment operator.
 
 ~RscStructWriter (void)=default
 Destructs this instance and frees all resources.
 
template<class T >
void WriteNextField (const T &currentField)
 Writes the next field with primitive Type. More...
 
void WriteNextField (const RscVariant< MaxStringSize > &currentField)
 Writes the next field that is contained in currentField. This method supports RscVariants with array and struct information. More...
 
void WriteNextField (const RscString< MaxStringSize > &currentField)
 Writes the next string field. More...
 

Detailed Description

template<int MaxStringSize>
class Arp::System::Rsc::Services::RscStructWriter< MaxStringSize >

Helper class to write a struct from an RscVariant. This class uses the struct information stored in RscVariant.

Member Function Documentation

◆ WriteNextField() [1/3]

template<int MaxStringSize>
void Arp::System::Rsc::Services::RscStructWriter< MaxStringSize >::WriteNextField ( const RscString< MaxStringSize > &  currentField)
inline

Writes the next string field.

Parameters
currentFieldReference to RscString

◆ WriteNextField() [2/3]

template<int MaxStringSize>
void Arp::System::Rsc::Services::RscStructWriter< MaxStringSize >::WriteNextField ( const RscVariant< MaxStringSize > &  currentField)
inline

Writes the next field that is contained in currentField. This method supports RscVariants with array and struct information.

Parameters
currentFieldReference to RscVariant with data

◆ WriteNextField() [3/3]

template<int MaxStringSize>
template<class T >
void Arp::System::Rsc::Services::RscStructWriter< MaxStringSize >::WriteNextField ( const T &  currentField)
inline

Writes the next field with primitive Type.

Parameters
currentFieldReference to value
Template Parameters
TType of value

The documentation for this class was generated from the following file: