PLCnext API Documentation
21.0.0.35466
Arp
System
Commons
Configuration
ConfigSettings.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
#include <list>
10
11
namespace
Arp
{
namespace
System
{
namespace
Commons {
namespace
Configuration
12
{
13
14
using namespace
Arp::System::Commons::Xml
;
15
16
class
ConfigSettings
:
public
IXmlSerializable
17
{
18
public
:
// construction/destruction
20
ConfigSettings
(
void
) =
default
;
22
ConfigSettings
(
const
ConfigSettings
& arg) =
default
;
24
ConfigSettings
& operator=(
const
ConfigSettings
& arg) =
default
;
26
~
ConfigSettings
(
void
) =
default
;
27
28
public
:
// static fields
29
static
const
char
* XmlElementName;
30
31
public
:
// getter/setter
32
const
String
& GetPath(
void
)
const
;
33
34
public
:
// IXmlSerializable operations
35
void
ReadXml(
XmlReader
& reader,
XmlSerializationContext
& context)
override
;
36
void
WriteXml(
XmlWriter
& writer,
XmlSerializationContext
& context)
override
;
37
38
protected
:
// fields
39
String
path;
40
};
41
43
// inline methods of class ConfigSettings
44
45
inline
const
String
& ConfigSettings::GetPath(
void
)
const
46
{
47
return
this->path;
48
}
49
50
}}}}
// end of namespace Arp::System::Commons::Configuration
Arp::System::Commons::Xml
Namespace for classes to read XML files
Definition:
ConfigHeader.hpp:11
Arp::System::Commons::Xml::XmlWriter
Class to write an XML File
Definition:
XmlWriter.hpp:20
Arp::BasicString< char8 >
Arp::System::Commons::Configuration::ConfigSettings
Definition:
ConfigSettings.hpp:16
Arp.h
Arp::System::Commons::Xml::IXmlSerializable
Interface for all classes which should be serializable for xml
Definition:
IXmlSerializable.hpp:17
Arp
Root namespace for the PLCnext API
Arp::System::Commons::Xml::XmlReader
Class to read an XML File. Non buffered reader, can only read forward
Definition:
XmlReader.hpp:22
Arp::System::Acf::ComponentCategory::System
System components used by the System, Device, Plc or Io domains.
Arp::System::Commons::Xml::XmlSerializationContext
XML context used during XML reading and writing to hold the context information
Definition:
XmlSerializationContext.hpp:25
Generated on Fri Dec 11 2020 14:17:53 for PLCnext API Documentation by
1.8.13