|
PLCnext API Documentation
20.3.1.28622
|
Class handle xml configuration documents More...
#include <XmlConfigDocument.hpp>

Public Member Functions | |
| 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 and parses the xml document from documentPath More... | |
| bool | TryLoad (const String &documentPath) |
| summary>saves the content xml encoded to documentPath More... | |
| void | Save (const String &documentPath) |
| summary>saves the content xml encoded to the file the document was loaded from More... | |
| void | Save (void) |
Protected Member Functions | |
| virtual void | ReadDocument (XmlReader &reader) |
Protected Attributes | |
| MultiXmlConfigDocument * | pRootDoc |
| IXmlSerializable & | content |
| String | documentXmlElementName |
| String | path |
| Version | recentVersion |
Friends | |
| class | XmlSerializationContext |
Class handle xml configuration documents
| Arp::System::Commons::Xml::XmlConfigDocument::XmlConfigDocument | ( | const String & | documentXmlElementName, |
| IXmlSerializable & | content | ||
| ) |
Constructs an XmlConfigDocument instance.
param name="documentXmlElementName">name of the root element of the document
param name="content">class which implements IXmlSerializable and can parse documentXmlElementName
| Arp::System::Commons::Xml::XmlConfigDocument::XmlConfigDocument | ( | MultiXmlConfigDocument & | rootDocument, |
| IXmlSerializable & | content | ||
| ) |
Constructs an XmlConfigDocument instance.
|
virtualdefault |
Destructs this instance and frees all resouces.
|
inline |
summary>Returns a pointer to the root document for MultiXmlConfigDocument
|
inline |
Returns the path to the current file loaded by this document
summary>Returns the current content of this document
|
inline |
summary>Returns the recend implemented schema version, used by XmlSerializationContext
| void Arp::System::Commons::Xml::XmlConfigDocument::Load | ( | const String & | documentPath | ) |
loads and parses the xml document from documentPath
summary>trys to load and parse the xml document from documentPath
returns>true if the document was loaded successfully, false otherwise
| void Arp::System::Commons::Xml::XmlConfigDocument::Save | ( | const String & | documentPath | ) |
summary>saves the content xml encoded to the file the document was loaded from
| bool Arp::System::Commons::Xml::XmlConfigDocument::TryLoad | ( | const String & | documentPath | ) |
summary>saves the content xml encoded to documentPath
1.8.13