8#include "Arp/System/Core/TypeName.hxx" 
    9#include "Arp/System/Commons/Logging.h" 
   10#include "Arp/System/Commons/Exceptions/InvalidFormatException.hpp" 
   12namespace Arp { 
namespace System { 
namespace Commons { 
namespace Xml
 
   27    XmlWriter(
const String& filename, 
bool indent, 
const char* encoding = 
"UTF-8");
 
   61            SetAttributeValueInternal(attributeName, 
String::Format(
"{}", value));
 
   63        catch(std::exception& e)
 
   80    void SetAttributeValueInternal(
const char* attributeName, 
const char *value);
 
This class represents the Arp String. The implementation is based on std::string.
Definition: String.hpp:39
 
static String Format(const String &format, const Args &... args)
Formats the format  string using the .NET/Python syntax with the given variadic arguments.
Definition: String.inl:18
 
Implements a buffer which can be used to write xml data to memory
Definition: XmlBuffer.hpp:18
 
Class to write an XML File
Definition: XmlWriter.hpp:19
 
void WriteElementContent(const String &value)
writes the content inside the currently open element characters not allowed in xml are encoded
Definition: XmlWriter.cpp:199
 
void WriteStartElement(const char *elementName)
writes an start element with the given name <elementName>
Definition: XmlWriter.cpp:136
 
void WriteEndElement(void)
ends the currently open start element if no content was written inside this element,...
Definition: XmlWriter.cpp:151
 
static XmlWriter Create(const String &filename, bool indent, const char *encoding="UTF-8")
Creates a new Instance of the XmlWriter
Definition: XmlWriter.cpp:78
 
XmlWriter(XmlWriter &&arg)
Move contructor.
Definition: XmlWriter.cpp:59
 
void WriteStartDocument(void)
writes the start of an xml document e.g. xml tag
Definition: XmlWriter.cpp:106
 
void WriteEndDocument(void)
completes the xml document, must be called after the document data was written
Definition: XmlWriter.cpp:119
 
void WriteElementContentCData(const String &text)
writes the content inside the currently open element enclosed in a CDATA section characters not allow...
Definition: XmlWriter.cpp:216
 
void SetAttributeValue(const char *attributeName, const T &value)
writes a new attribute for the currently open element characters not allowed in xml are not encoded
Definition: XmlWriter.hpp:57
 
~XmlWriter(void)
Destructs this instance and frees all resources.
Definition: XmlWriter.cpp:50
 
Root namespace for the PLCnext API