#include "XmlTexNode.h" XmlTexNode::XmlTexNode(const char* tag, string&& binaryData): XmlNode(tag), binaryData(binaryData) {} XmlTexNode::~XmlTexNode() = default; void XmlTexNode::writeOut(OutputStream* out) { out->write("<"); out->write(tag); writeAttributes(out); out->write(">"); gchar* base64_str = g_base64_encode(reinterpret_cast(this->binaryData.c_str()), this->binaryData.length()); out->write(base64_str); g_free(base64_str); out->write("write(tag); out->write(">\n"); }