PLCnext API Documentation 25.0.2.69
|
Describes a subscribed variable. More...
#include <VariableInfo.hpp>
Public Types | |
using | DataType = Arp::Plc::Commons::DataType |
Public Member Functions | |
VariableInfo (void) | |
Constructs an VariableInfo instance. | |
VariableInfo (const RscString< 512 > &name, DataType type) | |
Constructs an VariableInfo 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... | |
![]() | |
RscSerializable (void)=default | |
The default constructor. | |
Static Public Member Functions | |
static size_t | GetFieldCount (void) |
Returns the count of fields More... | |
Public Attributes | |
RscString< 512 > | Name |
Full name of the variable. | |
DataType | Type = static_cast<DataType>(0) |
Arp.Plc.Gds.Services.VariableInfo.Type of the variable. | |
Describes a subscribed variable.
The structure includes the full name of the variable e.g.: ComponentName-1/ProgramName-1.Variable_Name
and the associated type (Arp.Plc.Commons.DataType) e.g.: Arp.Plc.Commons.DataType.Int8.
void Arp::Plc::Gds::Services::VariableInfo::Deserialize | ( | RscReader & | reader | ) |
Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader.
reader | Reference to RscReader. |
|
static |
Returns the count of fields
The field count is used for serialization via Rsc
void Arp::Plc::Gds::Services::VariableInfo::Serialize | ( | RscWriter & | writer | ) | const |
Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter.
writer | Reference to RscWriter |