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