Class xml_node_t¶
Defined in File loader.hpp
Inheritance Relationships¶
Base Type¶
public wt::scene::loader::node_t(Class node_t)
Class Documentation¶
-
class xml_node_t : public wt::scene::loader::node_t¶
Node for an XML data source.
Public Functions
-
xml_node_t(const pugi::xml_node &xmlnode) noexcept¶
-
~xml_node_t() noexcept = default¶
-
inline virtual const std::string &type() const noexcept override¶
Node type. For example, XML nodes should all return the same type (e.g., “XML”).
-
inline virtual const std::string &path() const noexcept override¶
Node path.
-
inline virtual const std::string &name() const noexcept override¶
Node name.
-
inline virtual bool has_attrib(const std::string &attribute) const noexcept override¶
-
inline virtual const std::string &operator[](const std::string &attribute) const noexcept override¶
Accesses an attribute by name.
-
inline virtual const std::map<std::string, std::string> &attributes() const noexcept override¶
List of attributes.
-
inline virtual std::vector<const node_t*> children(const std::string &name) const noexcept override¶
List of all children nodes of name
name.
-
inline virtual const std::vector<std::unique_ptr<node_t>> &children() const noexcept override¶
List of all children nodes.
-
inline auto get_node_offset_in_xmlfile() const noexcept¶
-
xml_node_t(const pugi::xml_node &xmlnode) noexcept¶