PLCnext API Documentation
23.6.0.37
Arp
System
Commons
Xml
IXmlSerializable.hpp
1
2
//
3
// Copyright PHOENIX CONTACT Electronics GmbH
4
//
6
7
#pragma once
8
#include "
Arp/System/Core/Arp.h
"
9
#include "Arp/System/Commons/Xml/XmlReader.hpp"
10
#include "Arp/System/Commons/Xml/XmlWriter.hpp"
11
#include "Arp/System/Commons/Xml/XmlSerializationContext.hpp"
12
13
namespace
Arp
{
namespace
System
{
namespace
Commons {
namespace
Xml
14
{
15
17
class
IXmlSerializable
18
{
19
public
:
// typedefs
20
21
public
:
// construction/destruction
23
IXmlSerializable
(
void
) =
default
;
25
//IXmlSerializable(const IXmlSerializable& arg) = delete;
27
//IXmlSerializable& operator=(const IXmlSerializable& arg) = delete;
29
virtual
~IXmlSerializable
(
void
) =
default
;
30
31
public
:
// operators
32
33
public
:
// static operations
34
35
public
:
// setter/getter operations
36
37
public
:
// operations
41
virtual
void
ReadXml
(
XmlReader
& reader,
XmlSerializationContext
& context) = 0;
42
46
virtual
void
WriteXml(
XmlWriter
& writer,
XmlSerializationContext
& context) = 0;
47
48
protected
:
// operations
49
50
private
:
// static methods
51
52
private
:
// methods
53
54
private
:
// fields
55
56
private
:
// static fields
57
58
};
59
60
}}}}
// end of namespace Arp::System::Commons::Xml
Arp.h
Arp::System::Commons::Xml::IXmlSerializable
Interface for all classes which should be serializable for xml
Definition:
IXmlSerializable.hpp:18
Arp::System::Commons::Xml::IXmlSerializable::ReadXml
virtual void ReadXml(XmlReader &reader, XmlSerializationContext &context)=0
ReadXML must be implemented by all classes which should read its context from xml files
Arp::System::Commons::Xml::IXmlSerializable::IXmlSerializable
IXmlSerializable(void)=default
Constructs an IXmlSerializable instance.
Arp::System::Commons::Xml::IXmlSerializable::~IXmlSerializable
virtual ~IXmlSerializable(void)=default
Copy constructor.
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:19
Arp::System::Acf::ComponentCategory::System
@ System
System components used by the System, Device, Plc or Io domains.
Arp
Root namespace for the PLCnext API
Generated on Tue Aug 8 2023 06:35:53 for PLCnext API Documentation by
1.9.4