PLCnext API Documentation  21.0.0.35466
NegativeInitiateResult.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/RscWriter.hpp"
11 #include <vector>
12 
13 // DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED
14 
15 namespace Arp { namespace Io { namespace Interbus { namespace Services
16 {
17 
18 using namespace Arp;
19 using namespace Arp::System::Rsc::Services;
20 
25 {
29  uint16 SendBufferSize = 0;
30 
34  uint16 ReceiveBufferSize = 0;
35 
39  std::vector<uint8> ServiceSupported;
40 
41  void Serialize(RscWriter& writer)const override
42  {
43  writer.Write(this->SendBufferSize);
44  writer.Write(this->ReceiveBufferSize);
45  writer.WriteArray(this->ServiceSupported);
46  }
47 
48  void Deserialize(RscReader& reader)override
49  {
50  reader.Read(this->SendBufferSize);
51  reader.Read(this->ReceiveBufferSize);
52  reader.ReadArray(this->ServiceSupported);
53  }
54 
55  static size_t GetFieldCount(void)
56  {
57  return 3;
58  }
59 };
60 
61 }}}} // end of namespace Arp::Io::Interbus::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
Writes data to Rsc.
Definition: RscWriter.hpp:32
Namespace for classes and interfaces for the Remote Service Call implementation
Definition: IRscReadEnumerator.hxx:9
void WriteArray(const std::vector< T > &values)
Writes an array to Rsc. The data to write has to be stored in a std::vector.
Definition: RscWriter.hpp:199
T Read(void)
Reads an element of T from Rsc. With data tagging enabled RscType of T is validated.
Definition: RscReader.hpp:160
Result on unsuccessful PcpInitiate service
Definition: NegativeInitiateResult.hpp:24
void Deserialize(RscReader &reader) override
Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader...
Definition: NegativeInitiateResult.hpp:48
Marshalls structure or class data types. Serialize and Deserialize have to marshal fields in the same...
Definition: IRscSerializable.hpp:18
void Serialize(RscWriter &writer) const override
Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter...
Definition: NegativeInitiateResult.hpp:41
Root namespace for the PLCnext API
std::uint16_t uint16
The Arp unsigned integer type of 2 byte size.
Definition: PrimitiveTypes.hpp:31
void ReadArray(std::vector< T > &result)
Reads an array from Rsc. The read data is stored as std::vector.
Definition: RscReader.hpp:182
std::vector< uint8 > ServiceSupported
Coding of supported services
Definition: NegativeInitiateResult.hpp:39