OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::XMLElement Class Reference

#include <XMLReader.hpp>

Inherited by s3d::XMLReader.

Public Member Functions

SIV3D_NODISCARD_CXX20 XMLElement ()
 
SIV3D_NODISCARD_CXX20 XMLElement (const std::shared_ptr< tinyxml2::XMLDocument > &doc, const tinyxml2::XMLElement *element)
 
SIV3D_NODISCARD_CXX20 XMLElement (XMLElement &&other)
 
 ~XMLElement ()
 
XMLElementoperator= (XMLElement &&other)
 
bool isNull () const
 
 operator bool () const
 
String name () const
 
String text () const
 
XMLElement firstChild () const
 
XMLElement nextSibling () const
 
XMLElement parent () const
 
Array< std::pair< String, String > > attributes () const
 
Optional< Stringattribute (const String &name) const
 

Protected Attributes

std::unique_ptr< XMLElementDetail > m_detail
 

Constructor & Destructor Documentation

◆ XMLElement() [1/3]

SIV3D_NODISCARD_CXX20 s3d::XMLElement::XMLElement ( )

◆ XMLElement() [2/3]

SIV3D_NODISCARD_CXX20 s3d::XMLElement::XMLElement ( const std::shared_ptr< tinyxml2::XMLDocument > &  doc,
const tinyxml2::XMLElement *  element 
)

◆ XMLElement() [3/3]

SIV3D_NODISCARD_CXX20 s3d::XMLElement::XMLElement ( XMLElement &&  other)

◆ ~XMLElement()

s3d::XMLElement::~XMLElement ( )

Member Function Documentation

◆ attribute()

Optional<String> s3d::XMLElement::attribute ( const String name) const

◆ attributes()

Array<std::pair<String, String> > s3d::XMLElement::attributes ( ) const

◆ firstChild()

XMLElement s3d::XMLElement::firstChild ( ) const

◆ isNull()

bool s3d::XMLElement::isNull ( ) const

◆ name()

String s3d::XMLElement::name ( ) const

◆ nextSibling()

XMLElement s3d::XMLElement::nextSibling ( ) const

◆ operator bool()

s3d::XMLElement::operator bool ( ) const
explicit

◆ operator=()

XMLElement& s3d::XMLElement::operator= ( XMLElement &&  other)

◆ parent()

XMLElement s3d::XMLElement::parent ( ) const

◆ text()

String s3d::XMLElement::text ( ) const

Member Data Documentation

◆ m_detail

std::unique_ptr<XMLElementDetail> s3d::XMLElement::m_detail
protected

The documentation for this class was generated from the following file: