23 SPD_TRACE(
"### Destroy Node [{}] ###",
mpNodeInfo->name());
47 spdlog::get(
"console")->debug(
"Node::json() : name={} uuid={}", n->name(), n->uuid());
86 std::shared_ptr<Node> pParent =
nullptr;
89 pParent =
static_cast<std::shared_ptr<Node>
>(
mpParent);
91 catch (std::bad_weak_ptr &) {
94 SPD_TRACE(
"Node::print() : name [{}] nodes [{}] publishers [{}] this [{}] parent [{}]",
mpNodeInfo->name(),
96 static_cast<void *>(pParent.get()));
112 if (
name() == whatName) {
131 if (whatUUID == node->uuid()) {
134 mChildNodes.erase(mChildNodes.begin() + iNode);
std::shared_ptr< Node > find(std::string name) const
Find node by name.
std::vector< std::shared_ptr< Publisher > > mPublishers
List of publishers.
std::weak_ptr< Node > mpParent
Parent node.
Node(std::string name="", std::string uuid="")
void removeByUUID(std::string uuid)
Remove node by uuid.
NodeInfo * mpNodeInfo
Node Info.
virtual void json(Json::Value &root)
std::vector< std::shared_ptr< Node > > mChildNodes
List of nodes.
virtual void print() const
std::string name() const
Returns node name.