bt_minitrace_logger.h
Go to the documentation of this file.
1 #ifndef BT_MINITRACE_LOGGER_H
2 #define BT_MINITRACE_LOGGER_H
3 
4 #include <cstring>
5 #include "abstract_logger.h"
6 
7 namespace BT
8 {
10 {
11  static std::atomic<bool> ref_count;
12 
13  public:
14  MinitraceLogger(const BT::Tree& tree, const char* filename_json);
15 
16  virtual ~MinitraceLogger() override;
17 
18  virtual void callback(Duration timestamp, const TreeNode& node, NodeStatus prev_status,
19  NodeStatus status) override;
20 
21  virtual void flush() override;
22 
23  private:
25 };
26 
27 } // end namespace
28 
29 #endif // BT_MINITRACE_LOGGER_H
std::chrono::high_resolution_clock::time_point TimePoint
Definition: basic_types.h:338
virtual ~MinitraceLogger() override
virtual void callback(Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override
static std::atomic< bool > ref_count
Abstract base class for Behavior Tree Nodes.
Definition: tree_node.h:53
virtual void flush() override
NodeStatus
Definition: basic_types.h:35
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
Definition: bt_factory.h:78
MinitraceLogger(const BT::Tree &tree, const char *filename_json)
std::chrono::high_resolution_clock::duration Duration
Definition: basic_types.h:339


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 18:04:04