Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
XNode Class Reference
Inheritance diagram for XNode:
Inheritance graph
[legend]
Collaboration diagram for XNode:
Collaboration graph
[legend]

Public Member Functions

void SetName (const std::string &sName)
 
auto GetName () const -> const std::string &
 
template<typename T >
void GetTextValue (T &out) const
 
auto GetAttr (const std::string &sAttrName) const -> const XNodeValue *
 
auto GetAttr (const std::string &sAttrName) -> XNodeValue *
 
template<typename T >
auto GetAttrValue (const std::string &sName, T &out) const -> bool
 
auto PushAttrValue (lua_State *L, const std::string &sName) const -> bool
 
auto GetChildrenBegin () -> XNodes::iterator
 
auto GetChildrenBegin () const -> XNodes::const_iterator
 
auto GetChildrenEnd () -> XNodes::iterator
 
auto GetChildrenEnd () const -> XNodes::const_iterator
 
auto ChildrenEmpty () const -> bool
 
auto GetChild (const std::string &sName) const -> const XNode *
 
auto GetChild (const std::string &sName) -> XNode *
 
template<typename T >
auto GetChildValue (const std::string &sName, T &out) const -> bool
 
auto PushChildValue (lua_State *L, const std::string &sName) const -> bool
 
template<typename T >
auto AppendChild (const std::string &sName, T value) -> XNode *
 
auto AppendChild (const std::string &sName) -> XNode *
 
auto AppendChild (XNode *node) -> XNode *
 
auto RemoveChild (XNode *node, bool bDelete=true) -> bool
 
void RemoveChildFromByName (XNode *node)
 
void RenameChildInByName (XNode *node)
 
auto AppendAttrFrom (const std::string &sName, XNodeValue *pValue, bool bOverwrite=true) -> XNodeValue *
 
auto AppendAttr (const std::string &sName) -> XNodeValue *
 
template<typename T >
auto AppendAttr (const std::string &sName, T value) -> XNodeValue *
 
auto RemoveAttr (const std::string &sName) -> bool
 
 XNode (const std::string &sName)
 
 XNode (const XNode &cpy)
 
void Clear ()
 

Public Attributes

std::string m_sName
 
XAttrs m_attrs
 

Static Public Attributes

static const std::string TEXT_ATTRIBUTE = "__TEXT__"
 

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