PLCnext API Documentation 23.6.0.37
SharedDataSettings.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include "Arp/System/Commons/Xml/IXmlSerializable.hpp"
9
10namespace Arp { namespace System { namespace Commons { namespace Ipc
11{
12
13using namespace Arp::System::Commons::Xml;
14
16{
17public: // typedefs
18
19public: // construction/destruction
27 ~SharedDataSettings(void) = default;
28
29public: // setter/getter operations
30 size_t GetSize(void)const;
31
32
33public: // operations
34 void ReadXml(XmlReader& reader, XmlSerializationContext& context)override;
35 void WriteXml(XmlWriter& writer, XmlSerializationContext& context)override;
36
37private: // fields
38 size_t size;
39};
40
42// inline methods of class SharedDataSettings
44 : size(0)
45{
46}
47
48inline 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:19
@ 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