bt_cout_logger.h
Go to the documentation of this file.
1 #ifndef BT_COUT_LOGGER_H
2 #define BT_COUT_LOGGER_H
3 
4 #include <cstring>
5 #include "abstract_logger.h"
6 
7 namespace BT
8 {
20 {
21  static std::atomic<bool> ref_count;
22 
23  public:
24  StdCoutLogger(TreeNode* root_node);
26 
27  virtual void callback(Duration timestamp, const TreeNode& node, NodeStatus prev_status,
28  NodeStatus status) override;
29 
30  virtual void flush() override;
31 };
32 
33 } // end namespace
34 
35 #endif // BT_COUT_LOGGER_H
static std::atomic< bool > ref_count
StdCoutLogger(TreeNode *root_node)
NodeStatus
Definition: basic_types.h:28
virtual void flush() override
AddStdCoutLoggerToTree. Give the root node of a tree, a simple callback is subscribed to any status c...
std::chrono::high_resolution_clock::duration Duration
Definition: tree_node.h:36
virtual void callback(Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sun Feb 3 2019 03:14:32