PLCnext API Documentation 25.0.2.69
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Arp::Plc::Gds::Services::ReadItem Class Reference

Stores the data to be read, written by the controller and a possible data access error. More...

#include <ReadItem.hpp>

Inheritance diagram for Arp::Plc::Gds::Services::ReadItem:
Inheritance graph

Public Member Functions

 ReadItem (void)
 Constructs an ReadItem instance.
 
 ReadItem (DataAccessError error, const RscVariant< 512 > &value)
 Constructs an ReadItem instance.
 
void Serialize (RscWriter &writer) const
 Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter. More...
 
void Deserialize (RscReader &reader)
 Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader. More...
 
void Serialize (JRscWriter &writer) const
 Serializes the datatype. All fields of the datatype have to be serialized in use of JRscWriter. More...
 
void Deserialize (JRscReader &reader)
 Deserializes the datatype. All fields of the datatype have to be deserialized in use of JRscReader. More...
 
- Public Member Functions inherited from Arp::Base::Rsc::Commons::RscSerializable
 RscSerializable (void)=default
 The default constructor.
 

Static Public Member Functions

static size_t GetFieldCount (void)
 Returns the count of fields More...
 

Public Attributes

DataAccessError Error = static_cast<DataAccessError>(0)
 Contains the possible data access errors.
 
RscVariant< 512 > Value
 Contains the data to be read, written by the controller.
 

Detailed Description

Stores the data to be read, written by the controller and a possible data access error.

Member Function Documentation

◆ Deserialize() [1/2]

void Arp::Plc::Gds::Services::ReadItem::Deserialize ( JRscReader &  reader)

Deserializes the datatype. All fields of the datatype have to be deserialized in use of JRscReader.

Parameters
readerReference to RscReader.

◆ Deserialize() [2/2]

void Arp::Plc::Gds::Services::ReadItem::Deserialize ( RscReader reader)

Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader.

Parameters
readerReference to RscReader.

◆ GetFieldCount()

size_t Arp::Plc::Gds::Services::ReadItem::GetFieldCount ( void  )
static

Returns the count of fields

Returns
Count of fields.

The field count is used for serialization via Rsc

◆ Serialize() [1/2]

void Arp::Plc::Gds::Services::ReadItem::Serialize ( JRscWriter &  writer) const

Serializes the datatype. All fields of the datatype have to be serialized in use of JRscWriter.

Parameters
writerReference to RscWriter

◆ Serialize() [2/2]

void Arp::Plc::Gds::Services::ReadItem::Serialize ( RscWriter writer) const

Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter.

Parameters
writerReference to RscWriter

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