PLCnext API Documentation 25.0.2.69
SharedDataSettings.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
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
26 ~SharedDataSettings(void) = default;
27
28public: // setter/getter operations
29 size_t GetSize(void)const;
30
31
32public: // operations
33 void ReadXml(XmlReader& reader, XmlSerializationContext& context)override;
34 void WriteXml(XmlWriter& writer, XmlSerializationContext& context)override;
35
36private: // fields
37 size_t size;
38};
39
40}}}} // 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
Definition: SharedDataSettings.cpp:11
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.cpp:21
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:27
Class to write an XML File
Definition: XmlWriter.hpp:19
Namespace for classes to read XML files
Root namespace for the PLCnext API