8#include "Arp/System/Commons/Xml/IXmlSerializable.hpp"
9#include "Arp/System/Commons/Xml/XmlSerializationContext.hpp"
10#include "Arp/System/Commons/Configuration/ConfigSettings.hpp"
12namespace Arp {
namespace System {
namespace Commons {
namespace Xml
16class MultiXmlConfigDocument;
42 Version GetRecentVersion(
void)
const;
54 void Save(
const String& documentPath,
bool syncFilesystem);
63 void Save(
bool syncFilesystem);
65 void LoadString(
const String& xmlContent);
68 virtual void ReadDocument(
XmlReader& reader);
79 String documentXmlElementName;
99 return this->pRootDoc;
102inline Version XmlConfigDocument::GetRecentVersion()
const
104 return this->recentVersion;
This class represents the version of a special SDK or Arp build.
Definition: BasicVersion.hpp:36
Interface for all classes which should be serializable for xml
Definition: IXmlSerializable.hpp:18
special version of XmlConfigDocument to include xml configuration data from other xml files inside a ...
Definition: MultiXmlConfigDocument.hpp:26
Class handle xml configuration documents
Definition: XmlConfigDocument.hpp:21
virtual ~XmlConfigDocument(void)=default
Destructs this instance and frees all resouces.
XmlConfigDocument(const String &documentXmlElementName, IXmlSerializable &content)
Constructs an XmlConfigDocument instance.
MultiXmlConfigDocument * GetRootDocument(void)
summary>Returns the recend implemented schema version, used by XmlSerializationContext
Definition: XmlConfigDocument.hpp:97
const String & GetPath(void) const
Returns the path to the current file loaded by this document
Definition: XmlConfigDocument.hpp:87
void Load(const String &documentPath)
Loads the document from specified <paramref="documentPath"/>
bool TryLoad(const String &documentPath)
summary>saves the content xml encoded to documentPath with filesystem sync
void Save(const String &documentPath, bool syncFilesystem)
XmlConfigDocument(MultiXmlConfigDocument &rootDocument, IXmlSerializable &content)
Constructs an XmlConfigDocument instance.
void Save(void)
Definition: XmlConfigDocument.hpp:107
void Save(const String &documentPath, bool syncFilesystem, const Version &schemaVersion)
summary>saves the content xml encoded to the file the document was loaded from with filesystem sync
void Save(const String &documentPath)
void Save(bool syncFilesystem)
summary>Loads the document from a string
IXmlSerializable & GetContent(void)
summary>Returns a pointer to the root document for MultiXmlConfigDocument
Definition: XmlConfigDocument.hpp:92
Class to read an XML File. Non buffered reader, can only read forward
Definition: XmlReader.hpp:25
XML context used during XML reading and writing to hold the context information
Definition: XmlSerializationContext.hpp:26
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API