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

#include <XLXmlParser.hpp>

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

Public Member Functions

 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

Protected Attributes

pugi::xml_node_struct * m_node {nullptr}
size_t name_begin {0}

Constructor & Destructor Documentation

◆ OpenXLSX_xml_node() [1/3]

OpenXLSX::OpenXLSX_xml_node::OpenXLSX_xml_node ( )

◆ OpenXLSX_xml_node() [2/3]

OpenXLSX::OpenXLSX_xml_node::OpenXLSX_xml_node ( pugi::xml_node_struct * node)

◆ OpenXLSX_xml_node() [3/3]

OpenXLSX::OpenXLSX_xml_node::OpenXLSX_xml_node ( const pugi::xml_node & node)

Member Function Documentation

◆ append_attribute()

XMLAttribute OpenXLSX::OpenXLSX_xml_node::append_attribute ( const char * name_)

◆ append_child() [1/2]

XMLNode OpenXLSX::OpenXLSX_xml_node::append_child ( const char * name_,
bool force_ns = false )

◆ append_child() [2/2]

template<typename T = XMLNodeType>
XMLNode OpenXLSX::OpenXLSX_xml_node::append_child ( T type_ = node_element)
inline

◆ append_copy() [1/2]

XMLAttribute OpenXLSX::OpenXLSX_xml_node::append_copy ( const XMLAttribute & attr)

◆ append_copy() [2/2]

XMLNode OpenXLSX::OpenXLSX_xml_node::append_copy ( const XMLNode & node)

◆ append_move()

XMLNode OpenXLSX::OpenXLSX_xml_node::append_move ( const XMLNode & node)

◆ attribute()

XMLAttribute OpenXLSX::OpenXLSX_xml_node::attribute ( const char * name_) const

◆ attributes()

XMLAttributeRange OpenXLSX::OpenXLSX_xml_node::attributes ( ) const

◆ child()

XMLNode OpenXLSX::OpenXLSX_xml_node::child ( const char * name_) const

◆ child_count_of_type()

template<typename T = XMLNodeType>
size_t OpenXLSX::OpenXLSX_xml_node::child_count_of_type ( T type_ = node_element) const
inline

◆ child_value() [1/2]

const char * OpenXLSX::OpenXLSX_xml_node::child_value ( ) const

◆ child_value() [2/2]

const char * OpenXLSX::OpenXLSX_xml_node::child_value ( const char * name_) const

◆ children() [1/2]

XMLNodeRange OpenXLSX::OpenXLSX_xml_node::children ( ) const

◆ children() [2/2]

XMLNodeRange OpenXLSX::OpenXLSX_xml_node::children ( const char * name_) const

◆ empty()

bool OpenXLSX::OpenXLSX_xml_node::empty ( ) const

◆ find_child()

template<typename Predicate>
XMLNode OpenXLSX::OpenXLSX_xml_node::find_child ( Predicate pred) const
inline

◆ find_child_by_attribute() [1/2]

XMLNode OpenXLSX::OpenXLSX_xml_node::find_child_by_attribute ( const char * attr_name,
const char * attr_value ) const

◆ find_child_by_attribute() [2/2]

XMLNode OpenXLSX::OpenXLSX_xml_node::find_child_by_attribute ( const char * name_,
const char * attr_name,
const char * attr_value ) const

◆ first_attribute()

XMLAttribute OpenXLSX::OpenXLSX_xml_node::first_attribute ( ) const

◆ first_child()

XMLNode OpenXLSX::OpenXLSX_xml_node::first_child ( ) const

◆ first_child_of_type()

template<typename T = XMLNodeType>
XMLNode OpenXLSX::OpenXLSX_xml_node::first_child_of_type ( T type_ = node_element) const
inline

◆ insert_child_after() [1/2]

XMLNode OpenXLSX::OpenXLSX_xml_node::insert_child_after ( const char * name_,
const XMLNode & node,
bool force_ns = false )

◆ insert_child_after() [2/2]

template<typename T = XMLNodeType>
XMLNode OpenXLSX::OpenXLSX_xml_node::insert_child_after ( T type_,
const XMLNode & node )
inline

◆ insert_child_before() [1/2]

XMLNode OpenXLSX::OpenXLSX_xml_node::insert_child_before ( const char * name_,
const XMLNode & node,
bool force_ns = false )

◆ insert_child_before() [2/2]

template<typename T = XMLNodeType>
XMLNode OpenXLSX::OpenXLSX_xml_node::insert_child_before ( T type_,
const XMLNode & node )
inline

◆ insert_copy_after()

XMLNode OpenXLSX::OpenXLSX_xml_node::insert_copy_after ( const XMLNode & node,
const XMLNode & ref )

◆ insert_copy_before()

XMLNode OpenXLSX::OpenXLSX_xml_node::insert_copy_before ( const XMLNode & node,
const XMLNode & ref )

◆ insert_move_after()

XMLNode OpenXLSX::OpenXLSX_xml_node::insert_move_after ( const XMLNode & node,
const XMLNode & ref )

◆ insert_move_before()

XMLNode OpenXLSX::OpenXLSX_xml_node::insert_move_before ( const XMLNode & node,
const XMLNode & ref )

◆ internal_object()

pugi::xml_node_struct * OpenXLSX::OpenXLSX_xml_node::internal_object ( ) const
inline

◆ last_attribute()

XMLAttribute OpenXLSX::OpenXLSX_xml_node::last_attribute ( ) const

◆ last_child()

XMLNode OpenXLSX::OpenXLSX_xml_node::last_child ( ) const

◆ last_child_of_type()

template<typename T = XMLNodeType>
XMLNode OpenXLSX::OpenXLSX_xml_node::last_child_of_type ( T type_ = node_element) const
inline

◆ name()

const char * OpenXLSX::OpenXLSX_xml_node::name ( ) const

◆ name_without_namespace()

const char * OpenXLSX::OpenXLSX_xml_node::name_without_namespace ( const char * name_) const

◆ namespaced_name_proxy()

NameProxy OpenXLSX::OpenXLSX_xml_node::namespaced_name_proxy ( const char * name_,
bool force_ns ) const

◆ next_sibling() [1/2]

XMLNode OpenXLSX::OpenXLSX_xml_node::next_sibling ( ) const

◆ next_sibling() [2/2]

XMLNode OpenXLSX::OpenXLSX_xml_node::next_sibling ( const char * name_) const

◆ next_sibling_of_type() [1/2]

template<typename T = XMLNodeType>
XMLNode OpenXLSX::OpenXLSX_xml_node::next_sibling_of_type ( const char * name_,
T type_ = node_element ) const
inline

◆ next_sibling_of_type() [2/2]

template<typename T = XMLNodeType>
XMLNode OpenXLSX::OpenXLSX_xml_node::next_sibling_of_type ( T type_ = node_element) const
inline

◆ operator bool()

OpenXLSX::OpenXLSX_xml_node::operator bool ( ) const
explicit

◆ operator pugi::xml_node()

OpenXLSX::OpenXLSX_xml_node::operator pugi::xml_node ( ) const

◆ operator!=()

bool OpenXLSX::OpenXLSX_xml_node::operator!= ( const OpenXLSX_xml_node & other) const

◆ operator<()

bool OpenXLSX::OpenXLSX_xml_node::operator< ( const OpenXLSX_xml_node & other) const

◆ operator==()

bool OpenXLSX::OpenXLSX_xml_node::operator== ( const OpenXLSX_xml_node & other) const

◆ parent()

XMLNode OpenXLSX::OpenXLSX_xml_node::parent ( ) const

◆ prepend_attribute()

XMLAttribute OpenXLSX::OpenXLSX_xml_node::prepend_attribute ( const char * name_)

◆ prepend_child() [1/2]

XMLNode OpenXLSX::OpenXLSX_xml_node::prepend_child ( const char * name_,
bool force_ns = false )

◆ prepend_child() [2/2]

template<typename T = XMLNodeType>
XMLNode OpenXLSX::OpenXLSX_xml_node::prepend_child ( T type_ = node_element)
inline

◆ prepend_copy()

XMLNode OpenXLSX::OpenXLSX_xml_node::prepend_copy ( const XMLNode & node)

◆ prepend_move()

XMLNode OpenXLSX::OpenXLSX_xml_node::prepend_move ( const XMLNode & node)

◆ previous_sibling() [1/2]

XMLNode OpenXLSX::OpenXLSX_xml_node::previous_sibling ( ) const

◆ previous_sibling() [2/2]

XMLNode OpenXLSX::OpenXLSX_xml_node::previous_sibling ( const char * name_) const

◆ previous_sibling_of_type() [1/2]

template<typename T = XMLNodeType>
XMLNode OpenXLSX::OpenXLSX_xml_node::previous_sibling_of_type ( const char * name_,
T type_ = node_element ) const
inline

◆ previous_sibling_of_type() [2/2]

template<typename T = XMLNodeType>
XMLNode OpenXLSX::OpenXLSX_xml_node::previous_sibling_of_type ( T type_ = node_element) const
inline

◆ print()

void OpenXLSX::OpenXLSX_xml_node::print ( std::ostream & os,
const char * indent = "\t",
unsigned int flags = 1 ) const

◆ raw_name()

const char * OpenXLSX::OpenXLSX_xml_node::raw_name ( ) const

◆ remove_attribute() [1/2]

bool OpenXLSX::OpenXLSX_xml_node::remove_attribute ( const char * name_)

◆ remove_attribute() [2/2]

bool OpenXLSX::OpenXLSX_xml_node::remove_attribute ( const XMLAttribute & a)

◆ remove_attributes()

void OpenXLSX::OpenXLSX_xml_node::remove_attributes ( )

◆ remove_child() [1/2]

bool OpenXLSX::OpenXLSX_xml_node::remove_child ( const char * name_)

◆ remove_child() [2/2]

bool OpenXLSX::OpenXLSX_xml_node::remove_child ( const XMLNode & n)

◆ remove_children()

void OpenXLSX::OpenXLSX_xml_node::remove_children ( )

◆ select_node()

pugi::xpath_node OpenXLSX::OpenXLSX_xml_node::select_node ( const char * query) const

◆ select_nodes()

pugi::xpath_node_set OpenXLSX::OpenXLSX_xml_node::select_nodes ( const char * query) const

◆ set_name() [1/2]

bool OpenXLSX::OpenXLSX_xml_node::set_name ( const char * rhs,
bool force_ns = false )

◆ set_name() [2/2]

bool OpenXLSX::OpenXLSX_xml_node::set_name ( const char * rhs,
size_t size,
bool force_ns = false )

◆ set_value()

bool OpenXLSX::OpenXLSX_xml_node::set_value ( const char * rhs)

◆ text()

XMLText OpenXLSX::OpenXLSX_xml_node::text ( ) const

◆ type()

XMLNodeType OpenXLSX::OpenXLSX_xml_node::type ( ) const

◆ value()

const char * OpenXLSX::OpenXLSX_xml_node::value ( ) const

Field Documentation

◆ m_node

pugi::xml_node_struct* OpenXLSX::OpenXLSX_xml_node::m_node {nullptr}
protected

◆ name_begin

size_t OpenXLSX::OpenXLSX_xml_node::name_begin {0}
protected

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