Otclient
14/8/2020
|
#include <otmlnode.h>
Public Member Functions | |
virtual | ~OTMLNode () |
std::string | tag () |
int | size () |
std::string | source () |
std::string | rawValue () |
bool | isUnique () |
bool | isNull () |
bool | hasTag () |
bool | hasValue () |
bool | hasChildren () |
bool | hasChildAt (const std::string &childTag) |
bool | hasChildAtIndex (int childIndex) |
void | setTag (const std::string &tag) |
void | setValue (const std::string &value) |
void | setNull (bool null) |
void | setUnique (bool unique) |
void | setSource (const std::string &source) |
OTMLNodePtr | get (const std::string &childTag) |
OTMLNodePtr | getIndex (int childIndex) |
OTMLNodePtr | at (const std::string &childTag) |
OTMLNodePtr | atIndex (int childIndex) |
void | addChild (const OTMLNodePtr &newChild) |
bool | removeChild (const OTMLNodePtr &oldChild) |
bool | replaceChild (const OTMLNodePtr &oldChild, const OTMLNodePtr &newChild) |
void | copy (const OTMLNodePtr &node) |
void | merge (const OTMLNodePtr &node) |
void | clear () |
OTMLNodeList | children () |
OTMLNodePtr | clone () |
template<typename T = std::string> | |
T | value () |
template<typename T = std::string> | |
T | valueAt (const std::string &childTag) |
template<typename T = std::string> | |
T | valueAtIndex (int childIndex) |
template<typename T = std::string> | |
T | valueAt (const std::string &childTag, const T &def) |
template<typename T = std::string> | |
T | valueAtIndex (int childIndex, const T &def) |
template<typename T > | |
void | write (const T &v) |
template<typename T > | |
void | writeAt (const std::string &childTag, const T &v) |
template<typename T > | |
void | writeIn (const T &v) |
virtual std::string | emit () |
OTMLNodePtr | asOTMLNode () |
Public Member Functions inherited from stdext::shared_object | |
shared_object () | |
virtual | ~shared_object () |
void | add_ref () |
void | dec_ref () |
refcount_t | ref_count () |
template<typename T > | |
stdext::shared_object_ptr< T > | static_self_cast () |
template<typename T > | |
stdext::shared_object_ptr< T > | dynamic_self_cast () |
template<typename T > | |
stdext::shared_object_ptr< T > | const_self_cast () |
Static Public Member Functions | |
static OTMLNodePtr | create (std::string tag="", bool unique=false) |
static OTMLNodePtr | create (std::string tag, std::string value) |
Protected Member Functions | |
OTMLNode () | |
Protected Attributes | |
OTMLNodeList | m_children |
std::string | m_tag |
std::string | m_value |
std::string | m_source |
bool | m_unique |
bool | m_null |
Definition at line 28 of file otmlnode.h.
|
inlinevirtual |
Definition at line 31 of file otmlnode.h.
|
inlineprotected |
Definition at line 95 of file otmlnode.h.
void OTMLNode::addChild | ( | const OTMLNodePtr & | newChild | ) |
Definition at line 91 of file otmlnode.cpp.
|
inline |
OTMLNodePtr OTMLNode::at | ( | const std::string & | childTag | ) |
Definition at line 70 of file otmlnode.cpp.
OTMLNodePtr OTMLNode::atIndex | ( | int | childIndex | ) |
Definition at line 84 of file otmlnode.cpp.
OTMLNodeList OTMLNode::children | ( | ) |
void OTMLNode::clear | ( | ) |
OTMLNodePtr OTMLNode::clone | ( | ) |
Definition at line 179 of file otmlnode.cpp.
void OTMLNode::copy | ( | const OTMLNodePtr & | node | ) |
Definition at line 145 of file otmlnode.cpp.
|
static |
|
static |
Definition at line 27 of file otmlnode.cpp.
|
virtual |
Reimplemented in OTMLDocument.
Definition at line 192 of file otmlnode.cpp.
OTMLNodePtr OTMLNode::get | ( | const std::string & | childTag | ) |
OTMLNodePtr OTMLNode::getIndex | ( | int | childIndex | ) |
Definition at line 63 of file otmlnode.cpp.
|
inline |
Definition at line 47 of file otmlnode.h.
|
inline |
bool OTMLNode::hasChildren | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
void OTMLNode::merge | ( | const OTMLNodePtr & | node | ) |
Definition at line 157 of file otmlnode.cpp.
|
inline |
bool OTMLNode::removeChild | ( | const OTMLNodePtr & | oldChild | ) |
bool OTMLNode::replaceChild | ( | const OTMLNodePtr & | oldChild, |
const OTMLNodePtr & | newChild | ||
) |
|
inline |
|
inline |
Definition at line 54 of file otmlnode.h.
|
inline |
Definition at line 50 of file otmlnode.h.
|
inline |
|
inline |
Definition at line 51 of file otmlnode.h.
|
inline |
|
inline |
|
inline |
T OTMLNode::value |
Definition at line 122 of file otmlnode.h.
T OTMLNode::valueAt | ( | const std::string & | childTag | ) |
Definition at line 130 of file otmlnode.h.
T OTMLNode::valueAt | ( | const std::string & | childTag, |
const T & | def | ||
) |
T OTMLNode::valueAtIndex | ( | int | childIndex | ) |
T OTMLNode::valueAtIndex | ( | int | childIndex, |
const T & | def | ||
) |
void OTMLNode::write | ( | const T & | v | ) |
void OTMLNode::writeAt | ( | const std::string & | childTag, |
const T & | v | ||
) |
Definition at line 162 of file otmlnode.h.
void OTMLNode::writeIn | ( | const T & | v | ) |
Definition at line 170 of file otmlnode.h.
|
protected |
Definition at line 97 of file otmlnode.h.
|
protected |
Definition at line 102 of file otmlnode.h.
|
protected |
Definition at line 100 of file otmlnode.h.
|
protected |
Definition at line 98 of file otmlnode.h.
|
protected |
Definition at line 101 of file otmlnode.h.
|
protected |
Definition at line 99 of file otmlnode.h.