Class node_t¶
Defined in File node.hpp
Inheritance Relationships¶
Derived Type¶
public wt::scene::loader::xml::xml_node_t(Class xml_node_t)
Class Documentation¶
-
class node_t¶
Scene data source node interface.
Subclassed by wt::scene::loader::xml::xml_node_t
Public Functions
-
virtual ~node_t() noexcept = default¶
-
virtual const std::string &type() const noexcept = 0¶
Node type. For example, XML nodes should all return the same type (e.g., “XML”).
-
virtual const std::string &path() const noexcept = 0¶
Node path.
-
virtual const std::string &name() const noexcept = 0¶
Node name.
-
virtual bool has_attrib(const std::string &attribute) const noexcept = 0¶
-
virtual const std::string &operator[](const std::string &attribute) const noexcept = 0¶
Accesses an attribute by name.
-
virtual const std::map<std::string, std::string> &attributes() const noexcept = 0¶
List of attributes.
-
virtual std::vector<const node_t*> children(const std::string &name) const noexcept = 0¶
List of all children nodes of name
name.
-
virtual const std::vector<std::unique_ptr<node_t>> &children() const noexcept = 0¶
List of all children nodes.
-
inline auto children_view() const noexcept¶
A view of all children as const references.
-
inline auto children_view() noexcept¶
A view of all children as references.
-
virtual ~node_t() noexcept = default¶