AddStdCoutLoggerToTree. Give the root node of a tree, a simple callback is subscribed to any status change of each node. More...
#include <bt_cout_logger.h>
Public Member Functions | |
virtual void | callback (Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override |
virtual void | flush () override |
StdCoutLogger (const BT::Tree &tree) | |
~StdCoutLogger () override | |
Static Private Attributes | |
static std::atomic< bool > | ref_count |
AddStdCoutLoggerToTree. Give the root node of a tree, a simple callback is subscribed to any status change of each node.
root_node |
Definition at line 19 of file bt_cout_logger.h.
BT::StdCoutLogger::StdCoutLogger | ( | const BT::Tree & | tree | ) |
Definition at line 7 of file bt_cout_logger.cpp.
BT::StdCoutLogger::~StdCoutLogger | ( | ) | [override] |
Definition at line 15 of file bt_cout_logger.cpp.
void BT::StdCoutLogger::callback | ( | Duration | timestamp, |
const TreeNode & | node, | ||
NodeStatus | prev_status, | ||
NodeStatus | status | ||
) | [override, virtual] |
Implements BT::StatusChangeLogger.
Definition at line 20 of file bt_cout_logger.cpp.
void BT::StdCoutLogger::flush | ( | ) | [override, virtual] |
Implements BT::StatusChangeLogger.
Definition at line 37 of file bt_cout_logger.cpp.
std::atomic< bool > BT::StdCoutLogger::ref_count [static, private] |
Definition at line 21 of file bt_cout_logger.h.