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