8 #include "Arp/System/Commons/Xml/IXmlSerializable.hpp" 9 #include "Arp/System/Commons/Xml/XmlSerializationContext.hpp" 10 #include "Arp/System/Commons/Configuration/ConfigSettings.hpp" 12 namespace Arp {
namespace System {
namespace Commons {
namespace Xml
16 class MultiXmlConfigDocument;
42 Version GetRecentVersion(
void)
const;
55 void LoadString(
const String& xmlContent);
58 virtual void ReadDocument(
XmlReader& reader);
69 String documentXmlElementName;
89 return this->pRootDoc;
92 inline Version XmlConfigDocument::GetRecentVersion()
const 94 return this->recentVersion;
103 this->
Save(this->path);
MultiXmlConfigDocument * GetRootDocument(void)
summary>Returns the recend implemented schema version, used by XmlSerializationContext
Definition: XmlConfigDocument.hpp:87
special version of XmlConfigDocument to include xml configuration data from other xml files inside a ...
Definition: MultiXmlConfigDocument.hpp:25
void Save(void)
summary>Loads the document from a string
Definition: XmlConfigDocument.hpp:97
const String & GetPath(void) const
Returns the path to the current file loaded by this document
Definition: XmlConfigDocument.hpp:77
virtual ~XmlConfigDocument(void)=default
Destructs this instance and frees all resouces.
bool IsEmpty() const
Determines if this string is empty.
Definition: BasicString.hxx:1099
This class represents the version of a special SDK or Arp build.
Definition: BasicVersion.hpp:34
Interface for all classes which should be serializable for xml
Definition: IXmlSerializable.hpp:17
Class handle xml configuration documents
Definition: XmlConfigDocument.hpp:20
bool TryLoad(const String &documentPath)
summary>saves the content xml encoded to documentPath
XmlConfigDocument(const String &documentXmlElementName, IXmlSerializable &content)
Constructs an XmlConfigDocument instance.
Root namespace for the PLCnext API
This exception is used for xml parsing errors.
Definition: XmlException.hpp:14
Class to read an XML File. Non buffered reader, can only read forward
Definition: XmlReader.hpp:22
IXmlSerializable & GetContent(void)
summary>Returns a pointer to the root document for MultiXmlConfigDocument
Definition: XmlConfigDocument.hpp:82
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:25
void Load(const String &documentPath)
Loads the document from specified <paramref="documentPath"/>