PLCnext API Documentation  22.9.0.33
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;
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
Definition: SharedDataSettings.hpp:16
void ReadXml(XmlReader &reader, XmlSerializationContext &context) override
ReadXML must be implemented by all classes which should read its context from xml files
SharedDataSettings & operator=(const SharedDataSettings &arg)=default
Assignment operator.
SharedDataSettings(const SharedDataSettings &arg)=default
Copy contructor.
~SharedDataSettings(void)=default
Destructs this instance and frees all resouces.
SharedDataSettings(void)
Constructs an SharedDataSettings instance.
Definition: SharedDataSettings.hpp:43
Interface for all classes which should be serializable for xml
Definition: IXmlSerializable.hpp:18
Class to read an XML File. Non buffered reader, can only read forward
Definition: XmlReader.hpp:25
XML context used during XML reading and writing to hold the context information
Definition: XmlSerializationContext.hpp:26
Class to write an XML File
Definition: XmlWriter.hpp:21
@ System
System components used by the System, Device, Plc or Io domains.
Namespace for classes to read XML files
Definition: ConfigHeader.hpp:12
Root namespace for the PLCnext API