PLCnext API Documentation  21.0.0.35466
SharedDataSettings.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 #pragma once
7 #include "Arp/System/Core/Arp.h"
8 #include "Arp/System/Commons/Xml/IXmlSerializable.hpp"
9 
10 namespace Arp { namespace System { namespace Commons { namespace Ipc
11 {
12 
13 using namespace Arp::System::Commons::Xml;
14 
16 {
17 public: // typedefs
18 
19 public: // construction/destruction
21  SharedDataSettings(void);
23  SharedDataSettings(const SharedDataSettings& arg) = default;
25  SharedDataSettings& operator=(const SharedDataSettings& arg) = default;
27  ~SharedDataSettings(void) = default;
28 
29 public: // setter/getter operations
30  size_t GetSize(void)const;
31 
32 
33 public: // operations
34  void ReadXml(XmlReader& reader, XmlSerializationContext& context)override;
35  void WriteXml(XmlWriter& writer, XmlSerializationContext& context)override;
36 
37 private: // fields
38  size_t size;
39 };
40 
42 // inline methods of class SharedDataSettings
44  : size(0)
45 {
46 }
47 
48 inline size_t SharedDataSettings::GetSize(void)const
49 {
50  return this->size;
51 }
52 
53 }}}} // end of namesapce Arp::System::Commons::Ipc
Namespace for classes to read XML files
Definition: ConfigHeader.hpp:11
Class to write an XML File
Definition: XmlWriter.hpp:20
Interface for all classes which should be serializable for xml
Definition: IXmlSerializable.hpp:17
Root namespace for the PLCnext API
Class to read an XML File. Non buffered reader, can only read forward
Definition: XmlReader.hpp:22
System components used by the System, Device, Plc or Io domains.
Definition: SharedDataSettings.hpp:15
XML context used during XML reading and writing to hold the context information
Definition: XmlSerializationContext.hpp:25
SharedDataSettings(void)
Constructs an SharedDataSettings instance.
Definition: SharedDataSettings.hpp:43