PLCnext API Documentation
23.6.0.37
Arp
System
Commons
Xml
ConfigHeader.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/IXmlSerializable.hpp"
10
11
namespace
Arp
{
namespace
System {
namespace
Commons {
namespace
Xml
12
{
13
15
class
ConfigHeader
:
public
IXmlSerializable
,
Loggable
<ConfigHeader>
16
{
17
public
:
// typedefs
18
typedef
std::map<String, String> DecriptionList;
19
20
public
:
// construction/destruction
22
ConfigHeader
(
void
) =
default
;
24
ConfigHeader
(
const
ConfigHeader
& arg) =
delete
;
26
ConfigHeader
&
operator=
(
const
ConfigHeader
& arg) =
delete
;
28
virtual
~ConfigHeader
(
void
) =
default
;
29
30
public
:
// operators
31
32
public
:
// static operations
33
34
public
:
// setter/getter operations
35
36
public
:
// operations
38
void
ReadXml
(
XmlReader
& reader,
XmlSerializationContext
& context)
override
;
40
void
WriteXml(
XmlWriter
& writer,
XmlSerializationContext
& context)
override
;
41
42
protected
:
// operations
43
44
private
:
// static methods
45
46
private
:
// methods
47
48
private
:
// fields
49
String
name;
50
String
version;
51
DecriptionList decriptionList;
52
53
private
:
// static fields
54
};
55
56
}}}}
// end of namespace Arp::System::Commons::Xml
Arp.h
Arp::BasicString< char8 >
Arp::System::Commons::Diagnostics::Logging::Loggable
Definition:
Loggable.hxx:20
Arp::System::Commons::Xml::ConfigHeader
Internal class to parse the header common for all configuration files
Definition:
ConfigHeader.hpp:16
Arp::System::Commons::Xml::ConfigHeader::ConfigHeader
ConfigHeader(void)=default
Constructs an IXmlSerializable instance.
Arp::System::Commons::Xml::ConfigHeader::~ConfigHeader
virtual ~ConfigHeader(void)=default
Destructs this instance and frees all resources.
Arp::System::Commons::Xml::ConfigHeader::ReadXml
void ReadXml(XmlReader &reader, XmlSerializationContext &context) override
Implements ReadXml from IXmlSerializable
Arp::System::Commons::Xml::ConfigHeader::operator=
ConfigHeader & operator=(const ConfigHeader &arg)=delete
Assignment operator.
Arp::System::Commons::Xml::ConfigHeader::ConfigHeader
ConfigHeader(const ConfigHeader &arg)=delete
Copy constructor.
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:19
Arp
Root namespace for the PLCnext API
Generated on Tue Aug 8 2023 06:35:53 for PLCnext API Documentation by
1.9.4