OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
Loading...
Searching...
No Matches
OpenXLSX::OpenXLSX_xml_document Class Reference

#include <XLXmlParser.hpp>

Inheritance diagram for OpenXLSX::OpenXLSX_xml_document:
OpenXLSX::OpenXLSX_xml_node

Public Member Functions

 OpenXLSX_xml_document ()
 ~OpenXLSX_xml_document ()
 OpenXLSX_xml_document (const OpenXLSX_xml_document &)=delete
OpenXLSX_xml_document & operator= (const OpenXLSX_xml_document &)=delete
 OpenXLSX_xml_document (OpenXLSX_xml_document &&other) noexcept
OpenXLSX_xml_document & operator= (OpenXLSX_xml_document &&other) noexcept
XMLNode document_element () const
void print (std::ostream &ostr) const
XMLParseResult load_string (const char *contents, unsigned int options=0x0016)
XMLParseResult load_buffer (const void *contents, size_t size, unsigned int settings=0x0016)
void save (pugi::xml_writer &writer, const char *indent="\t", unsigned int flags=1) const
void save (std::ostream &stream, const char *indent="\t", unsigned int flags=1) const
void reset ()
void reset (const XMLDocument &proto)
 operator pugi::xml_document & ()
 operator const pugi::xml_document & () const
pugi::xml_document & internal_document ()
const pugi::xml_document & internal_document () const
Public Member Functions inherited from OpenXLSX::OpenXLSX_xml_node
 OpenXLSX_xml_node ()
 OpenXLSX_xml_node (pugi::xml_node_struct *node)
 OpenXLSX_xml_node (const pugi::xml_node &node)
bool operator== (const OpenXLSX_xml_node &other) const
bool operator!= (const OpenXLSX_xml_node &other) const
bool operator< (const OpenXLSX_xml_node &other) const
 operator bool () const
bool empty () const
const char * name () const
const char * raw_name () const
const char * value () const
bool set_name (const char *rhs, bool force_ns=false)
bool set_name (const char *rhs, size_t size, bool force_ns=false)
bool set_value (const char *rhs)
XMLAttribute attribute (const char *name_) const
XMLAttribute first_attribute () const
XMLAttribute last_attribute () const
XMLAttribute append_attribute (const char *name_)
XMLAttribute prepend_attribute (const char *name_)
bool remove_attribute (const char *name_)
bool remove_attribute (const XMLAttribute &a)
void remove_attributes ()
XMLNode parent () const
XMLNode child (const char *name_) const
XMLNode next_sibling (const char *name_) const
XMLNode next_sibling () const
XMLNode previous_sibling (const char *name_) const
XMLNode previous_sibling () const
const char * child_value () const
const char * child_value (const char *name_) const
XMLNode first_child () const
XMLNode last_child () const
template<typename T = XMLNodeType>
XMLNode append_child (T type_=node_element)
template<typename T = XMLNodeType>
XMLNode prepend_child (T type_=node_element)
XMLNode append_child (const char *name_, bool force_ns=false)
XMLNode prepend_child (const char *name_, bool force_ns=false)
template<typename T = XMLNodeType>
XMLNode insert_child_after (T type_, const XMLNode &node)
template<typename T = XMLNodeType>
XMLNode insert_child_before (T type_, const XMLNode &node)
XMLNode insert_child_after (const char *name_, const XMLNode &node, bool force_ns=false)
XMLNode insert_child_before (const char *name_, const XMLNode &node, bool force_ns=false)
bool remove_child (const char *name_)
bool remove_child (const XMLNode &n)
void remove_children ()
XMLNode find_child_by_attribute (const char *name_, const char *attr_name, const char *attr_value) const
XMLNode find_child_by_attribute (const char *attr_name, const char *attr_value) const
template<typename Predicate>
XMLNode find_child (Predicate pred) const
pugi::xpath_node select_node (const char *query) const
pugi::xpath_node_set select_nodes (const char *query) const
XMLText text () const
XMLNodeType type () const
template<typename T = XMLNodeType>
XMLNode first_child_of_type (T type_=node_element) const
template<typename T = XMLNodeType>
XMLNode last_child_of_type (T type_=node_element) const
template<typename T = XMLNodeType>
size_t child_count_of_type (T type_=node_element) const
template<typename T = XMLNodeType>
XMLNode next_sibling_of_type (T type_=node_element) const
template<typename T = XMLNodeType>
XMLNode previous_sibling_of_type (T type_=node_element) const
template<typename T = XMLNodeType>
XMLNode next_sibling_of_type (const char *name_, T type_=node_element) const
template<typename T = XMLNodeType>
XMLNode previous_sibling_of_type (const char *name_, T type_=node_element) const
XMLNode append_copy (const XMLNode &node)
XMLNode prepend_copy (const XMLNode &node)
XMLNode insert_copy_after (const XMLNode &node, const XMLNode &ref)
XMLNode insert_copy_before (const XMLNode &node, const XMLNode &ref)
XMLNode append_move (const XMLNode &node)
XMLNode prepend_move (const XMLNode &node)
XMLNode insert_move_after (const XMLNode &node, const XMLNode &ref)
XMLNode insert_move_before (const XMLNode &node, const XMLNode &ref)
XMLAttribute append_copy (const XMLAttribute &attr)
 operator pugi::xml_node () const
XMLNodeRange children () const
XMLNodeRange children (const char *name_) const
XMLAttributeRange attributes () const
void print (std::ostream &os, const char *indent="\t", unsigned int flags=1) const
const char * name_without_namespace (const char *name_) const
NameProxy namespaced_name_proxy (const char *name_, bool force_ns) const
pugi::xml_node_struct * internal_object () const

Additional Inherited Members

Protected Attributes inherited from OpenXLSX::OpenXLSX_xml_node
pugi::xml_node_struct * m_node {nullptr}
size_t name_begin {0}

Constructor & Destructor Documentation

◆ OpenXLSX_xml_document() [1/3]

OpenXLSX::OpenXLSX_xml_document::OpenXLSX_xml_document ( )

◆ ~OpenXLSX_xml_document()

OpenXLSX::OpenXLSX_xml_document::~OpenXLSX_xml_document ( )
default

◆ OpenXLSX_xml_document() [2/3]

OpenXLSX::OpenXLSX_xml_document::OpenXLSX_xml_document ( const OpenXLSX_xml_document & )
delete

◆ OpenXLSX_xml_document() [3/3]

OpenXLSX::OpenXLSX_xml_document::OpenXLSX_xml_document ( OpenXLSX_xml_document && other)
noexcept

Member Function Documentation

◆ document_element()

XMLNode OpenXLSX::OpenXLSX_xml_document::document_element ( ) const

◆ internal_document() [1/2]

pugi::xml_document & OpenXLSX::OpenXLSX_xml_document::internal_document ( )
inline

◆ internal_document() [2/2]

const pugi::xml_document & OpenXLSX::OpenXLSX_xml_document::internal_document ( ) const
inline

◆ load_buffer()

XMLParseResult OpenXLSX::OpenXLSX_xml_document::load_buffer ( const void * contents,
size_t size,
unsigned int settings = 0x0016 )

◆ load_string()

XMLParseResult OpenXLSX::OpenXLSX_xml_document::load_string ( const char * contents,
unsigned int options = 0x0016 )

◆ operator const pugi::xml_document &()

OpenXLSX::OpenXLSX_xml_document::operator const pugi::xml_document & ( ) const

◆ operator pugi::xml_document &()

OpenXLSX::OpenXLSX_xml_document::operator pugi::xml_document & ( )

◆ operator=() [1/2]

OpenXLSX_xml_document & OpenXLSX::OpenXLSX_xml_document::operator= ( const OpenXLSX_xml_document & )
delete

◆ operator=() [2/2]

OpenXLSX_xml_document & OpenXLSX::OpenXLSX_xml_document::operator= ( OpenXLSX_xml_document && other)
noexcept

◆ print()

void OpenXLSX::OpenXLSX_xml_document::print ( std::ostream & ostr) const

◆ reset() [1/2]

void OpenXLSX::OpenXLSX_xml_document::reset ( )

◆ reset() [2/2]

void OpenXLSX::OpenXLSX_xml_document::reset ( const XMLDocument & proto)

◆ save() [1/2]

void OpenXLSX::OpenXLSX_xml_document::save ( pugi::xml_writer & writer,
const char * indent = "\t",
unsigned int flags = 1 ) const

◆ save() [2/2]

void OpenXLSX::OpenXLSX_xml_document::save ( std::ostream & stream,
const char * indent = "\t",
unsigned int flags = 1 ) const

The documentation for this class was generated from the following files:
  • /home/runner/work/OpenXLSX-NX/OpenXLSX-NX/OpenXLSX/headers/XLXmlParser.hpp
  • /home/runner/work/OpenXLSX-NX/OpenXLSX-NX/OpenXLSX/sources/XLXmlParser.cpp