1#ifndef OPENXLSX_XLXMLDATA_HPP
2#define OPENXLSX_XLXMLDATA_HPP
6# pragma warning(disable : 4251)
7# pragma warning(disable : 4275)
16#include "OpenXLSX-Exports.hpp"
89 const std::string& xmlPath,
90 const std::string& xmlId =
"",
104 bool valid()
const {
return m_xmlDoc !=
nullptr; }
140 void setRawData(
const std::string& data);
163 XLDocument* getParentDoc();
169 const XLDocument* getParentDoc()
const;
175 std::string getXmlPath()
const;
181 std::string getXmlID()
const;
187 XLContentType getXmlType()
const;
193 XMLDocument* getXmlDocument();
199 const XMLDocument* getXmlDocument()
const;
211 std::string m_xmlPath{};
212 std::string m_xmlID{};
214 mutable std::unique_ptr<XMLDocument> m_xmlDoc;
216 bool m_isStreamed{
false};
This class encapsulates the concept of an excel file. It is different from the XLWorkbook,...
Definition XLDocument.hpp:82
The XLXmlData class encapsulates the properties and behaviour of the .xml files in an ....
Definition XLXmlData.hpp:68
bool valid() const
check whether class is linked to a valid XML document
Definition XLXmlData.hpp:104
XLXmlData(XLXmlData &&other) noexcept=default
Move constructor. All data members are trivially movable. Hence an explicitly defaulted move construc...
std::string m_streamFilePath
Definition XLXmlData.hpp:217
XLXmlData & operator=(XLXmlData &&other) noexcept=default
Move assignment operator. All data members are trivially movable. Hence an explicitly defaulted move ...
XLXmlData(const XLXmlData &other)=delete
Copy constructor. The m_xmlDoc data member is a XMLDocument object, which is non-copyable....
XLXmlData & operator=(const XLXmlData &other)=delete
Copy assignment operator. The m_xmlDoc data member is a XMLDocument object, which is non-copyable....
bool empty() const
Test whether there is an XML file linked to this object.
XLXmlData()=default
Default constructor. All member variables are default constructed. Except for the raw XML data,...
~XLXmlData()
Default destructor. The XLXmlData does not manage any dynamically allocated resources,...
The XLXmlSavingDeclaration class encapsulates the properties of an XML saving declaration,...
Definition XLXmlSavingDeclaration.hpp:19
Definition IZipArchive.hpp:18
XLContentType
Definition XLContentTypes.hpp:28
Auto-managed malloc memory for Zero-Copy serialization.
Definition XLXmlData.hpp:26
XLAllocatedMemory(const XLAllocatedMemory &)=delete
XLAllocatedMemory(XLAllocatedMemory &&other) noexcept
Definition XLXmlData.hpp:38
void * data
Definition XLXmlData.hpp:27
~XLAllocatedMemory()
Definition XLXmlData.hpp:30
XLAllocatedMemory & operator=(XLAllocatedMemory &&other) noexcept
Definition XLXmlData.hpp:42
XLAllocatedMemory & operator=(const XLAllocatedMemory &)=delete
size_t size
Definition XLXmlData.hpp:28
XLAllocatedMemory()=default
void * release()
Definition XLXmlData.hpp:54