XML context used during XML reading and writing to hold the context information
More...
#include <XmlSerializationContext.hpp>
|
static const char * | IncludeXmlName |
|
static const char * | IncludesXmlName |
|
|
class | MultiXmlConfigDocument |
|
XML context used during XML reading and writing to hold the context information
◆ XmlSerializationContext() [1/2]
Constructs an XmlContext instance.
◆ XmlSerializationContext() [2/2]
◆ ~XmlSerializationContext()
Arp::System::Commons::Xml::XmlSerializationContext::~XmlSerializationContext |
( |
void |
| ) |
|
|
default |
Destructs this instance and frees all resouces.
◆ GetDocumentSchemaVersion()
Version Arp::System::Commons::Xml::XmlSerializationContext::GetDocumentSchemaVersion |
( |
void |
| ) |
const |
|
inline |
returns the document schema version stored in this context
The document schema version is read by ReadDocumentContext
- Returns
- the document schema version
summary>return the XmlConfigDocument this context was created for
◆ InvalidXmlElementOccurs()
void Arp::System::Commons::Xml::XmlSerializationContext::InvalidXmlElementOccurs |
( |
XmlReader & |
reader, |
|
|
const char * |
xmlElementName |
|
) |
| |
summary>this operation should be called while xml serialisation when ever an xml element is missing exception cref="XmlException">Is thrown
◆ MissingXmlElementOccurs()
void Arp::System::Commons::Xml::XmlSerializationContext::MissingXmlElementOccurs |
( |
XmlReader & |
reader, |
|
|
const char * |
xmlElementName |
|
) |
| |
summary>Reads the include xml tags inside a configuration file to include further xml files
◆ operator=()
◆ operator[]()
String & Arp::System::Commons::Xml::XmlSerializationContext::operator[] |
( |
const String & |
attributeName | ) |
|
|
inline |
operator [] to get and set attributes referenced by attributeName
summary>operator [] to get attributes referenced by attributeName
◆ ReadDocumentContext()
void Arp::System::Commons::Xml::XmlSerializationContext::ReadDocumentContext |
( |
XmlReader & |
reader | ) |
|
reads the document context i.e. schema version from the XMlReader
is used by XmlConfigDocument summary>writes the document context i.e. schema version with the XMlWriter
is used by XmlConfigDocument
◆ ReadIncludesElement()
void Arp::System::Commons::Xml::XmlSerializationContext::ReadIncludesElement |
( |
XmlReader & |
reader | ) |
|
summary>resolves a relative path into an absolute relative to the document path and replaces all placeholders
◆ ResolvePath()
String Arp::System::Commons::Xml::XmlSerializationContext::ResolvePath |
( |
const char * |
documentPath | ) |
|
summary>resolves a relative path into an absolute relative to the document path
◆ ResolvePlaceholder()
String Arp::System::Commons::Xml::XmlSerializationContext::ResolvePlaceholder |
( |
const char * |
input | ) |
|
|
inline |
summary>Adds a xml file to the list of included files
◆ ResolveRelativePath()
String Arp::System::Commons::Xml::XmlSerializationContext::ResolveRelativePath |
( |
const String & |
path | ) |
|
summary>resolves a string with a placeholder (Enviroment variables)
◆ WriteDocumentContext()
void Arp::System::Commons::Xml::XmlSerializationContext::WriteDocumentContext |
( |
XmlWriter & |
writer | ) |
const |
summary>this operation should be called while xml serialisation when an unknown xml element is recognized if the schema version of the file is greater then the schema version implemented a warning is logged otherwise a XmlException is thrown
The documentation for this class was generated from the following file: