#include <MyGUI_XmlDocument.h>
|
| Element (std::string_view _name, ElementPtr _parent, ElementType _type=ElementType::Normal, std::string_view _content={}) |
|
| Element (Element &&)=default |
|
ElementPtr | createChild (std::string_view _name, std::string_view _content={}, ElementType _type=ElementType::Normal) |
|
void | removeChild (ElementPtr _child) |
|
template<typename T, typename = std::enable_if_t<!std::is_convertible_v<T, std::string_view>>> |
void | addAttribute (std::string_view _key, const T &_value) |
|
void | addAttribute (std::string_view _key, std::string_view _value) |
|
void | removeAttribute (std::string_view _key) |
|
void | setAttribute (std::string_view _key, std::string_view _value) |
|
template<typename T, typename = std::enable_if_t<!std::is_convertible_v<T, std::string_view>>> |
void | addContent (const T &_content) |
|
void | addContent (std::string_view _content) |
|
template<typename T, typename = std::enable_if_t<!std::is_convertible_v<T, std::string_view>>> |
void | setContent (const T &_content) |
|
void | setContent (std::string_view _content) |
|
void | clear () |
|
bool | findAttribute (std::string_view _name, std::string &_value) |
|
std::string_view | findAttribute (std::string_view _name) |
|
const std::string & | getName () const |
|
const std::string & | getContent () const |
|
const VectorAttributes & | getAttributes () const |
|
ElementPtr | getParent () const |
|
ElementEnumerator | getElementEnumerator () |
|
ElementType | getType () const |
|
std::unique_ptr< Element > | createCopy () |
|
template<typename T> |
void | addAttributes (std::string_view _key, const T &_value) |
|
void | addAttributes (std::string_view _key, std::string_view _value) |
|
template<typename T> |
void | addBody (const T &_content) |
|
void | addBody (std::string_view _content) |
|
template<typename T> |
void | setBody (const T &_content) |
|
void | setBody (std::string_view _content) |
|
const std::string & | getBody () const |
|
ElementEnumerator | getNodeIterator () |
|
Definition at line 164 of file MyGUI_XmlDocument.h.
◆ Element() [1/2]
◆ Element() [2/2]
MyGUI::xml::Element::Element |
( |
Element && | | ) |
|
|
default |
◆ addAttribute() [1/2]
template<typename T, typename = std::enable_if_t<!std::is_convertible_v<T, std::string_view>>>
void MyGUI::xml::Element::addAttribute |
( |
std::string_view | _key, |
|
|
const T & | _value ) |
|
inline |
◆ addAttribute() [2/2]
void MyGUI::xml::Element::addAttribute |
( |
std::string_view | _key, |
|
|
std::string_view | _value ) |
◆ addAttributes() [1/2]
template<typename T>
void MyGUI::xml::Element::addAttributes |
( |
std::string_view | _key, |
|
|
const T & | _value ) |
|
inline |
- Deprecated
- "use : template <typename T> void Element::addAttribute(const std::string &_key, const T& _value)"
Definition at line 239 of file MyGUI_XmlDocument.h.
◆ addAttributes() [2/2]
void MyGUI::xml::Element::addAttributes |
( |
std::string_view | _key, |
|
|
std::string_view | _value ) |
|
inline |
◆ addBody() [1/2]
template<typename T>
void MyGUI::xml::Element::addBody |
( |
const T & | _content | ) |
|
|
inline |
◆ addBody() [2/2]
void MyGUI::xml::Element::addBody |
( |
std::string_view | _content | ) |
|
|
inline |
◆ addContent() [1/2]
template<typename T, typename = std::enable_if_t<!std::is_convertible_v<T, std::string_view>>>
void MyGUI::xml::Element::addContent |
( |
const T & | _content | ) |
|
|
inline |
◆ addContent() [2/2]
void MyGUI::xml::Element::addContent |
( |
std::string_view | _content | ) |
|
◆ clear()
void MyGUI::xml::Element::clear |
( |
| ) |
|
◆ createChild()
◆ createCopy()
std::unique_ptr< Element > MyGUI::xml::Element::createCopy |
( |
| ) |
|
◆ findAttribute() [1/2]
std::string_view MyGUI::xml::Element::findAttribute |
( |
std::string_view | _name | ) |
|
◆ findAttribute() [2/2]
bool MyGUI::xml::Element::findAttribute |
( |
std::string_view | _name, |
|
|
std::string & | _value ) |
◆ getAttributes()
◆ getBody()
const std::string & MyGUI::xml::Element::getBody |
( |
| ) |
const |
|
inline |
◆ getContent()
const std::string & MyGUI::xml::Element::getContent |
( |
| ) |
const |
◆ getElementEnumerator()
◆ getName()
const std::string & MyGUI::xml::Element::getName |
( |
| ) |
const |
◆ getNodeIterator()
◆ getParent()
ElementPtr MyGUI::xml::Element::getParent |
( |
| ) |
const |
◆ getType()
◆ removeAttribute()
void MyGUI::xml::Element::removeAttribute |
( |
std::string_view | _key | ) |
|
◆ removeChild()
void MyGUI::xml::Element::removeChild |
( |
ElementPtr | _child | ) |
|
◆ setAttribute()
void MyGUI::xml::Element::setAttribute |
( |
std::string_view | _key, |
|
|
std::string_view | _value ) |
◆ setBody() [1/2]
template<typename T>
void MyGUI::xml::Element::setBody |
( |
const T & | _content | ) |
|
|
inline |
◆ setBody() [2/2]
void MyGUI::xml::Element::setBody |
( |
std::string_view | _content | ) |
|
|
inline |
◆ setContent() [1/2]
template<typename T, typename = std::enable_if_t<!std::is_convertible_v<T, std::string_view>>>
void MyGUI::xml::Element::setContent |
( |
const T & | _content | ) |
|
|
inline |
◆ setContent() [2/2]
void MyGUI::xml::Element::setContent |
( |
std::string_view | _content | ) |
|
◆ Document
The documentation for this class was generated from the following files: