#include <MyGUI_XmlDocument.h>
Public Member Functions | |
~Element () | |
ElementPtr | createChild (const std::string &_name, const std::string &_content="") |
template<typename T > | |
void | addAttribute (const std::string &_key, const T &_value) |
void | addAttribute (const std::string &_key, const std::string &_value) |
void | removeAttribute (const std::string &_key) |
void | setAttribute (const std::string &_key, const std::string &_value) |
template<typename T > | |
void | addContent (const T &_content) |
void | addContent (const std::string &_content) |
template<typename T > | |
void | setContent (const T &_content) |
void | setContent (const std::string &_content) |
void | clear () |
bool | findAttribute (const std::string &_name, std::string &_value) |
std::string | findAttribute (const std::string &_name) |
const std::string & | getName () |
const std::string & | getContent () |
const VectorAttributes & | getAttributes () |
ElementPtr | getParent () |
ElementEnumerator | getElementEnumerator () |
ElementType | getType () |
ElementPtr | createCopy () |
template<typename T > | |
void | addAttributes (const std::string &_key, const T &_value) |
void | addAttributes (const std::string &_key, const std::string &_value) |
template<typename T > | |
void | addBody (const T &_content) |
void | addBody (const std::string &_content) |
template<typename T > | |
void | setBody (const T &_content) |
void | setBody (const std::string &_content) |
const std::string & | getBody () |
ElementEnumerator | getNodeIterator () |
Friends | |
class | Document |
Definition at line 152 of file MyGUI_XmlDocument.h.
MyGUI::xml::Element::~Element | ( | ) |
Definition at line 150 of file MyGUI_XmlDocument.cpp.
void MyGUI::xml::Element::addAttribute | ( | const std::string & | _key, | |
const T & | _value | |||
) | [inline] |
Definition at line 167 of file MyGUI_XmlDocument.h.
void MyGUI::xml::Element::addAttribute | ( | const std::string & | _key, | |
const std::string & | _value | |||
) |
Definition at line 249 of file MyGUI_XmlDocument.cpp.
void MyGUI::xml::Element::addAttributes | ( | const std::string & | _key, | |
const T & | _value | |||
) | [inline] |
Definition at line 215 of file MyGUI_XmlDocument.h.
void MyGUI::xml::Element::addAttributes | ( | const std::string & | _key, | |
const std::string & | _value | |||
) | [inline] |
Definition at line 217 of file MyGUI_XmlDocument.h.
void MyGUI::xml::Element::addBody | ( | const T & | _content | ) | [inline] |
Definition at line 221 of file MyGUI_XmlDocument.h.
void MyGUI::xml::Element::addBody | ( | const std::string & | _content | ) | [inline] |
Definition at line 223 of file MyGUI_XmlDocument.h.
void MyGUI::xml::Element::addContent | ( | const T & | _content | ) | [inline] |
Definition at line 179 of file MyGUI_XmlDocument.h.
void MyGUI::xml::Element::addContent | ( | const std::string & | _content | ) |
Definition at line 294 of file MyGUI_XmlDocument.cpp.
void MyGUI::xml::Element::clear | ( | ) |
Definition at line 219 of file MyGUI_XmlDocument.cpp.
ElementPtr MyGUI::xml::Element::createChild | ( | const std::string & | _name, | |
const std::string & | _content = "" | |||
) |
Definition at line 212 of file MyGUI_XmlDocument.cpp.
ElementPtr MyGUI::xml::Element::createCopy | ( | ) |
Definition at line 266 of file MyGUI_XmlDocument.cpp.
bool MyGUI::xml::Element::findAttribute | ( | const std::string & | _name, | |
std::string & | _value | |||
) |
Definition at line 227 of file MyGUI_XmlDocument.cpp.
std::string MyGUI::xml::Element::findAttribute | ( | const std::string & | _name | ) |
Definition at line 240 of file MyGUI_XmlDocument.cpp.
const VectorAttributes& MyGUI::xml::Element::getAttributes | ( | ) | [inline] |
Definition at line 201 of file MyGUI_XmlDocument.h.
const std::string& MyGUI::xml::Element::getBody | ( | ) | [inline] |
Definition at line 231 of file MyGUI_XmlDocument.h.
const std::string& MyGUI::xml::Element::getContent | ( | ) | [inline] |
Definition at line 200 of file MyGUI_XmlDocument.h.
ElementEnumerator MyGUI::xml::Element::getElementEnumerator | ( | ) | [inline] |
Definition at line 204 of file MyGUI_XmlDocument.h.
const std::string& MyGUI::xml::Element::getName | ( | void | ) | [inline] |
Definition at line 199 of file MyGUI_XmlDocument.h.
ElementEnumerator MyGUI::xml::Element::getNodeIterator | ( | ) | [inline] |
Definition at line 233 of file MyGUI_XmlDocument.h.
ElementPtr MyGUI::xml::Element::getParent | ( | ) | [inline] |
Definition at line 202 of file MyGUI_XmlDocument.h.
ElementType MyGUI::xml::Element::getType | ( | ) | [inline] |
Definition at line 206 of file MyGUI_XmlDocument.h.
void MyGUI::xml::Element::removeAttribute | ( | const std::string & | _key | ) |
Definition at line 254 of file MyGUI_XmlDocument.cpp.
void MyGUI::xml::Element::setAttribute | ( | const std::string & | _key, | |
const std::string & | _value | |||
) |
Definition at line 281 of file MyGUI_XmlDocument.cpp.
void MyGUI::xml::Element::setBody | ( | const std::string & | _content | ) | [inline] |
Definition at line 228 of file MyGUI_XmlDocument.h.
void MyGUI::xml::Element::setBody | ( | const T & | _content | ) | [inline] |
Definition at line 226 of file MyGUI_XmlDocument.h.
void MyGUI::xml::Element::setContent | ( | const std::string & | _content | ) | [inline] |
Definition at line 192 of file MyGUI_XmlDocument.h.
void MyGUI::xml::Element::setContent | ( | const T & | _content | ) | [inline] |
Definition at line 187 of file MyGUI_XmlDocument.h.
friend class Document [friend] |
Definition at line 154 of file MyGUI_XmlDocument.h.