8 #include "Arp/System/Core/TypeName.hxx"     9 #include "Arp/System/Commons/Logging.h"    10 #include "Arp/System/Commons/Exceptions/InvalidFormatException.hpp"    12 #include "cppformat/format.h"    14 namespace Arp { 
namespace System { 
namespace Commons { 
namespace Xml
    31     XmlWriter(
const String& filename, 
bool indent, 
const char* encoding = 
"UTF-8");
    32     XmlWriter(XmlBuffer& buffer, 
bool indent, 
const char* encoding);
    65     static XmlWriter Create(XmlBuffer& buffer, 
bool indent, 
const char* encoding = 
"UTF-8");
   149             fmt::MemoryWriter tmpWriter;
   151             SetAttributeValueInternal(attributeName, tmpWriter.c_str());
   153         catch(std::exception& e)
   170     void SetAttributeValueInternal(
const char* attributeName, 
const char *value);
 void WriteElementContent(const String &value)
writes the content inside the currently open element characters not allowed in xml are encoded ...
 
Class to write an XML File
Definition: XmlWriter.hpp:20
 
~XmlWriter(void)
Destructs this instance and frees all resources.
 
void WriteEndElement(void)
ends the currently open start element if no content was written inside this element, an empty element is written if content was written inside this element, an end element is written 
 
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:145
 
bool GetIndent(void) const
Reads the indent status of this XmlWriter 
 
void WriteStartDocument(void)
writes the start of an xml document e.g. xml tag 
 
void WriteStartElement(const char *elementName)
writes an start element with the given name <elementName> 
 
static XmlWriter Create(const String &filename, bool indent, const char *encoding="UTF-8")
Creates a new Instance of the XmlWriter 
 
Root namespace for the PLCnext API
 
void WriteElementContentCData(const String &text)
writes the content inside the currently open element enclosed in a CDATA section characters not allow...
 
void WriteEndDocument(void)
completes the xml document, must be called after the document data was written 
 
XmlWriter(XmlWriter &&arg)
Move contructor.
 
System components used by the System, Device, Plc or Io domains.
 
const char * GetEncoding(void) const
Gets the encoding used by this XmlWriter