PLCnext API Documentation  21.0.0.35466
SessionProperty.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 #pragma once
7 #include "Arp/System/Core/Arp.h"
8 #include "Arp/System/Rsc/Services/IRscSerializable.hpp"
9 #include "Arp/System/Rsc/Services/RscReader.hpp"
10 #include "Arp/System/Rsc/Services/RscVariant.hxx"
11 #include "Arp/System/Rsc/Services/RscWriter.hpp"
12 #include "SessionPropertyName.hpp"
13 
14 // DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED
15 
16 namespace Arp { namespace Services { namespace DataLogger { namespace Services
17 {
18 
19 using namespace Arp;
20 using namespace Arp::System::Rsc::Services;
21 
26 {
28  SessionPropertyName Name = static_cast<SessionPropertyName>(0);
29 
33 
34  void Serialize(RscWriter& writer)const override
35  {
36  writer.Write(this->Name);
37  writer.Write(this->Value);
38  }
39 
40  void Deserialize(RscReader& reader)override
41  {
42  reader.Read(this->Name);
43  reader.Read(this->Value);
44  }
45 
46  static size_t GetFieldCount(void)
47  {
48  return 2;
49  }
50 };
51 
52 }}}} // end of namespace Arp::Services::DataLogger::Services
void Write(const T &value)
Writes an element of T from Rsc. Datatag and format is determined deducted by type of T...
Definition: RscWriter.hpp:173
Reads data from Rsc
Definition: RscReader.hpp:23
void Serialize(RscWriter &writer) const override
Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter...
Definition: SessionProperty.hpp:34
RscVariant< 512 > Value
Current value of attribute
Definition: SessionProperty.hpp:32
Writes data to Rsc.
Definition: RscWriter.hpp:32
Namespace for classes and interfaces for the Remote Service Call implementation
Definition: IRscReadEnumerator.hxx:9
T Read(void)
Reads an element of T from Rsc. With data tagging enabled RscType of T is validated.
Definition: RscReader.hpp:160
void Deserialize(RscReader &reader) override
Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader...
Definition: SessionProperty.hpp:40
Marshalls structure or class data types. Serialize and Deserialize have to marshal fields in the same...
Definition: IRscSerializable.hpp:18
Root namespace for the PLCnext API
SessionPropertyName
All available names of properties that can be set on a session
Definition: SessionPropertyName.hpp:20
All available names of properties that can be set on a session
Definition: SessionProperty.hpp:25