18 #ifndef __H__OCULAR_CORE_BUILDER_NODE__H__
19 #define __H__OCULAR_CORE_BUILDER_NODE__H__
21 #include "Utilities/Types.hpp"
22 #include "Utilities/StringUtils.hpp"
26 #include <unordered_map>
55 BuilderNode(
BuilderNode* parent, std::string
const& name, std::string
const& type, std::string
const& value);
63 std::string
const&
getName()
const;
73 std::string
const&
getType()
const;
92 BuilderNode*
addChild(std::string
const& name, std::string
const& type, std::string
const& value);
109 void findChildrenByName(std::vector<BuilderNode*>& children, std::string
const& name)
const;
117 void findChildrenByType(std::vector<BuilderNode*>& children, std::string
const& type)
const;
140 std::unordered_map<std::string, BuilderNode*> m_ChildMap;
void getAllChildren(std::vector< BuilderNode * > &children) const
Definition: BuilderNode.cpp:136
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
std::string const & getName() const
Definition: BuilderNode.cpp:51
void findChildrenByType(std::vector< BuilderNode * > &children, std::string const &type) const
Definition: BuilderNode.cpp:118
BuilderNode const * getParent() const
Definition: BuilderNode.cpp:66
Generic node system used for loading and saving SceneObjects and their components.
Definition: BuilderNode.hpp:51
void findChildrenByName(std::vector< BuilderNode * > &children, std::string const &name) const
Definition: BuilderNode.cpp:100
std::string const & getType() const
Definition: BuilderNode.cpp:61
uint32_t getNumChildren() const
Definition: BuilderNode.cpp:146
std::string const & getValue() const
Definition: BuilderNode.cpp:56
BuilderNode * addChild(std::string const &name, std::string const &type, std::string const &value)
Definition: BuilderNode.cpp:71
BuilderNode const * getChild(std::string const &name) const
Definition: BuilderNode.cpp:87