| 
    PLCnext API Documentation 25.6.0.37
    
   | 
 
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< FileItem > | 
| 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. | |
| void | AddFile (const String &filePath, const DocumentTraits &fileTraits) | 
| void | Load (const String &documentPath) | 
| summary>Loads the document from specified <paramref="documentPath"/>and with given <paramref="documentTraits"/> | |
| void | Load (const String &documentPath, const DocumentTraits &documentTraits) | 
| void | Load (const ConfigurationSettings &configSettings) | 
| bool | TryLoad (const String &documentPath) | 
| bool | TryLoad (const String &documentPath, const DocumentTraits &documentTraits) | 
| bool | TryLoad (const ConfigurationSettings &configSettings) | 
  Public Member Functions inherited from Arp::System::Commons::Xml::XmlConfigDocument | |
| XmlConfigDocument (const String &documentXmlElementName, IXmlSerializable &content) | |
| Constructs an XmlConfigDocument instance. More... | |
| XmlConfigDocument (MultiXmlConfigDocument &rootDocument, IXmlSerializable &content) | |
| Constructs an XmlConfigDocument instance. | |
| virtual | ~XmlConfigDocument (void)=default | 
| Destructs this instance and frees all resouces. | |
| const String & | GetPath (void) const | 
| Returns the path to the current file loaded by this document | |
| IXmlSerializable & | GetContent (void) | 
| Returns the current content of this document | |
| MultiXmlConfigDocument * | GetRootDocument (void) | 
| Returns a pointer to the root document for MultiXmlConfigDocument | |
| Version | GetRecentVersion (void) const | 
| Returns the recent implemented schema version, used by XmlSerializationContext | |
| const DocumentTraits & | GetTraits (void) const | 
| Returns current traits of document | |
| void | Load (const String &documentPath) | 
| Loads the document from specified <paramref="documentPath"/> | |
| void | Load (const String &documentPath, const DocumentTraits &documentTraits) | 
| Loads the document from specified <paramref="documentPath"/> and with given <paramref="documentTraits"/> | |
| bool | TryLoad (const String &documentPath) | 
| Tries to load document from specified <paramref="documentPath"/> More... | |
| bool | TryLoad (const String &documentPath, const DocumentTraits &documentTraits) | 
| Tries to load document from specified <paramref="documentPath"/> and with given <paramref="documentTraits"/> More... | |
| void | Save (const String &documentPath) | 
| saves the content xml encoded to documentPath with filesystem sync | |
| void | Save (const String &documentPath, bool syncFilesystem) | 
| saves the content xml encoded to documentPath More... | |
| void | Save (const String &documentPath, bool syncFilesystem, const Version &schemaVersion) | 
| saves the content xml encoded to documentPath More... | |
| void | Save (void) | 
| saves the content xml encoded to the file the document was loaded from with filesystem sync | |
| void | Save (bool syncFilesystem) | 
| saves the content xml encoded to the file the document was loaded from More... | |
| void | LoadString (const String &xmlContent, const String &contentTraits=String::Empty) | 
| Loads the document from a string | |
Protected Member Functions | |
| void | ReadDocument (XmlReader &reader) override | 
| summary>Loads the document from specified <paramref="documentPath"/> More... | |
| Files & | GetFiles () | 
| IncludedFiles & | GetIncludedFiles () | 
| virtual void | ReadDocument (XmlReader &reader) | 
Additional Inherited Members | |
  Protected Attributes inherited from Arp::System::Commons::Xml::XmlConfigDocument | |
| MultiXmlConfigDocument * | pRootDoc | 
| IXmlSerializable & | content | 
| String | documentXmlElementName | 
| String | path | 
| DocumentTraits | traits | 
| 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>
| Arp::System::Commons::Xml::MultiXmlConfigDocument::MultiXmlConfigDocument | ( | const String & | documentXmlNameArg, | 
| IXmlSerializable & | contentArg | ||
| ) | 
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
| void Arp::System::Commons::Xml::MultiXmlConfigDocument::Load | ( | const ConfigurationSettings & | configSettings | ) | 
summary>Tries to load all documents from specified <paramref="configSettings"/>
returns>true if all documents could be loaded successfully, otherwise false.
| void Arp::System::Commons::Xml::MultiXmlConfigDocument::Load | ( | const String & | documentPath, | 
| const DocumentTraits & | documentTraits | ||
| ) | 
summary>Tries to load document from specified <paramref="documentPath"/>
returns>true if the document was loaded successfully, otherwise false.
      
  | 
  overrideprotectedvirtual | 
summary>Loads the document from specified <paramref="documentPath"/>
Reimplemented from Arp::System::Commons::Xml::XmlConfigDocument.
| bool Arp::System::Commons::Xml::MultiXmlConfigDocument::TryLoad | ( | const String & | documentPath | ) | 
summary>Tries to load document from specified <paramref="documentPath"/> and with given <paramref="documentTraits"/>
returns>true if the document was loaded successfully, otherwise false.