|
MyGUI 3.4.3
|
#include <MyGUI_XmlDocument.h>
Public Member Functions | |
| 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 () |
Friends | |
| class | Document |
Definition at line 164 of file MyGUI_XmlDocument.h.
| MyGUI::xml::Element::Element | ( | std::string_view | _name, |
| ElementPtr | _parent, | ||
| ElementType | _type = ElementType::Normal, | ||
| std::string_view | _content = {} ) |
Definition at line 145 of file MyGUI_XmlDocument.cpp.
|
default |
|
inline |
Definition at line 187 of file MyGUI_XmlDocument.h.
| void MyGUI::xml::Element::addAttribute | ( | std::string_view | _key, |
| std::string_view | _value ) |
Definition at line 265 of file MyGUI_XmlDocument.cpp.
|
inline |
Definition at line 239 of file MyGUI_XmlDocument.h.
|
inline |
Definition at line 244 of file MyGUI_XmlDocument.h.
|
inline |
Definition at line 251 of file MyGUI_XmlDocument.h.
|
inline |
Definition at line 256 of file MyGUI_XmlDocument.h.
|
inline |
Definition at line 199 of file MyGUI_XmlDocument.h.
| void MyGUI::xml::Element::addContent | ( | std::string_view | _content | ) |
Definition at line 310 of file MyGUI_XmlDocument.cpp.
| void MyGUI::xml::Element::clear | ( | ) |
Definition at line 235 of file MyGUI_XmlDocument.cpp.
| ElementPtr MyGUI::xml::Element::createChild | ( | std::string_view | _name, |
| std::string_view | _content = {}, | ||
| ElementType | _type = ElementType::Normal ) |
Definition at line 218 of file MyGUI_XmlDocument.cpp.
| std::unique_ptr< Element > MyGUI::xml::Element::createCopy | ( | ) |
Definition at line 282 of file MyGUI_XmlDocument.cpp.
| std::string_view MyGUI::xml::Element::findAttribute | ( | std::string_view | _name | ) |
Definition at line 255 of file MyGUI_XmlDocument.cpp.
| bool MyGUI::xml::Element::findAttribute | ( | std::string_view | _name, |
| std::string & | _value ) |
Definition at line 242 of file MyGUI_XmlDocument.cpp.
| const VectorAttributes & MyGUI::xml::Element::getAttributes | ( | ) | const |
Definition at line 338 of file MyGUI_XmlDocument.cpp.
|
inline |
Definition at line 273 of file MyGUI_XmlDocument.h.
| const std::string & MyGUI::xml::Element::getContent | ( | ) | const |
Definition at line 333 of file MyGUI_XmlDocument.cpp.
| ElementEnumerator MyGUI::xml::Element::getElementEnumerator | ( | ) |
Definition at line 348 of file MyGUI_XmlDocument.cpp.
| const std::string & MyGUI::xml::Element::getName | ( | ) | const |
Definition at line 328 of file MyGUI_XmlDocument.cpp.
|
inline |
Definition at line 278 of file MyGUI_XmlDocument.h.
| ElementPtr MyGUI::xml::Element::getParent | ( | ) | const |
Definition at line 343 of file MyGUI_XmlDocument.cpp.
| ElementType MyGUI::xml::Element::getType | ( | ) | const |
Definition at line 353 of file MyGUI_XmlDocument.cpp.
| void MyGUI::xml::Element::removeAttribute | ( | std::string_view | _key | ) |
Definition at line 270 of file MyGUI_XmlDocument.cpp.
| void MyGUI::xml::Element::removeChild | ( | ElementPtr | _child | ) |
Definition at line 223 of file MyGUI_XmlDocument.cpp.
| void MyGUI::xml::Element::setAttribute | ( | std::string_view | _key, |
| std::string_view | _value ) |
Definition at line 297 of file MyGUI_XmlDocument.cpp.
|
inline |
Definition at line 262 of file MyGUI_XmlDocument.h.
|
inline |
Definition at line 267 of file MyGUI_XmlDocument.h.
|
inline |
Definition at line 207 of file MyGUI_XmlDocument.h.
| void MyGUI::xml::Element::setContent | ( | std::string_view | _content | ) |
Definition at line 323 of file MyGUI_XmlDocument.cpp.
|
friend |
Definition at line 166 of file MyGUI_XmlDocument.h.