PLCnext API Documentation
22.9.0.33
|
special version of XmlConfigDocument to include xml configuration data from other xml files inside a configuration file More...
#include <MultiXmlConfigDocument.hpp>
Public Types | |
using | Base = XmlConfigDocument |
using | Files = std::deque< String > |
using | IncludedFiles = std::list< String > |
using | Logger = Arp::System::Commons::Diagnostics::Logging::Logger<> |
Public Member Functions | |
MultiXmlConfigDocument (const String &documentXmlElementName, IXmlSerializable &content) | |
Constructs an MultiXmlConfigDocument instance. More... | |
virtual | ~MultiXmlConfigDocument (void)=default |
Destructs this instance and frees all resouces. More... | |
void | AddFile (const String &path) |
void | Load (const String &documentPath) |
Loads the document from specified <paramref="documentPath"/> More... | |
void | Load (const ConfigurationSettings &configSettings) |
bool | TryLoad (const String &documentPath) |
bool | TryLoad (const ConfigurationSettings &configSettings) |
![]() | |
XmlConfigDocument (const String &documentXmlElementName, IXmlSerializable &content) | |
Constructs an XmlConfigDocument instance. More... | |
XmlConfigDocument (MultiXmlConfigDocument &rootDocument, IXmlSerializable &content) | |
Constructs an XmlConfigDocument instance. More... | |
virtual | ~XmlConfigDocument (void)=default |
Destructs this instance and frees all resouces. More... | |
const String & | GetPath (void) const |
Returns the path to the current file loaded by this document More... | |
IXmlSerializable & | GetContent (void) |
summary>Returns a pointer to the root document for MultiXmlConfigDocument More... | |
MultiXmlConfigDocument * | GetRootDocument (void) |
summary>Returns the recend implemented schema version, used by XmlSerializationContext More... | |
Version | GetRecentVersion (void) const |
void | Load (const String &documentPath) |
Loads the document from specified <paramref="documentPath"/> More... | |
bool | TryLoad (const String &documentPath) |
summary>saves the content xml encoded to documentPath with filesystem sync More... | |
void | Save (const String &documentPath) |
void | Save (const String &documentPath, bool syncFilesystem) |
summary>saves the content xml encoded to the file the document was loaded from with filesystem sync More... | |
void | Save (void) |
void | Save (bool syncFilesystem) |
summary>Loads the document from a string | |
void | LoadString (const String &xmlContent) |
Protected Member Functions | |
void | ReadDocument (XmlReader &reader) override |
Files & | GetFiles () |
IncludedFiles & | GetIncludedFiles () |
Additional Inherited Members | |
![]() | |
MultiXmlConfigDocument * | pRootDoc |
IXmlSerializable & | content |
String | documentXmlElementName |
String | path |
Version | recentVersion |
special version of XmlConfigDocument to include xml configuration data from other xml files inside a configuration file
files can be included by code> Includes> /Includes> /code>
|
inline |
Constructs an MultiXmlConfigDocument instance.
param name="documentXmlElementName">name of the root element of the document
param name="content">class which implements IXmlSerializable and can parse documentXmlElementName</param
|
virtualdefault |
Destructs this instance and frees all resouces.
void Arp::System::Commons::Xml::MultiXmlConfigDocument::Load | ( | const ConfigurationSettings & | configSettings | ) |
summary>Tries to load document from specified <paramref="documentPath"/> returns>true
if the document was loaded successfully, otherwise false
.
void Arp::System::Commons::Xml::MultiXmlConfigDocument::Load | ( | const String & | documentPath | ) |
Loads the document from specified <paramref="documentPath"/>
summary>Loads all documents specified by <paramref="configSettings" />
bool Arp::System::Commons::Xml::MultiXmlConfigDocument::TryLoad | ( | const String & | documentPath | ) |
summary>Tries to load all documents from specified <paramref="configSettings"/> returns>true
if all documents could be loaded successfully, otherwise false
.