1 #define BIORBD_API_EXPORTS
2 #include "Utils/Node.h"
4 #include "Utils/String.h"
7 m_name(std::make_shared<biorbd::utils::
String>(
"")),
8 m_parentName(std::make_shared<biorbd::utils::
String>(
"")),
9 m_typeOfNode(std::make_shared<biorbd::utils::NODE_TYPE>(biorbd::utils::NODE_TYPE::NO_NODE_TYPE))
24 m_name(std::make_shared<biorbd::utils::
String>(name)),
25 m_parentName(std::make_shared<biorbd::utils::
String>(
"")),
26 m_typeOfNode(std::make_shared<biorbd::utils::NODE_TYPE>(biorbd::utils::NODE_TYPE::NO_NODE_TYPE))
34 m_name(std::make_shared<biorbd::utils::
String>(name)),
35 m_parentName(std::make_shared<biorbd::utils::
String>(parentName)),
36 m_typeOfNode(std::make_shared<biorbd::utils::NODE_TYPE>(biorbd::utils::NODE_TYPE::NO_NODE_TYPE))
std::shared_ptr< biorbd::utils::String > m_name
The name of the node.
void DeepCopy(const biorbd::utils::Node &other)
Deep copy of the node in another node.
void setParent(const biorbd::utils::String &name)
Set the parent name of the node.
A node is an abstract element which is assigned to a parent.
virtual ~Node()
Destroy class properly.
biorbd::utils::NODE_TYPE typeOfNode() const
Return the type of node.
const biorbd::utils::String & name() const
Return the name of the node.
std::shared_ptr< biorbd::utils::String > m_parentName
The parent name of the node.
Wrapper around the std::string class with augmented functionality.
const biorbd::utils::String & parent() const
Return the parent name of the node.
std::shared_ptr< biorbd::utils::NODE_TYPE > m_typeOfNode
The type of the node.
void setName(const biorbd::utils::String &name)
Set the name of the node.