Public Member Functions | Static Private Attributes
BT::StdCoutLogger Class Reference

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>

Inheritance diagram for BT::StdCoutLogger:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

AddStdCoutLoggerToTree. Give the root node of a tree, a simple callback is subscribed to any status change of each node.

Parameters:
root_node
Returns:
Important: the returned shared_ptr must not go out of scope, otherwise the logger is removed.

Definition at line 19 of file bt_cout_logger.h.


Constructor & Destructor Documentation

Definition at line 7 of file bt_cout_logger.cpp.

Definition at line 15 of file bt_cout_logger.cpp.


Member Function Documentation

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.


Member Data Documentation

std::atomic< bool > BT::StdCoutLogger::ref_count [static, private]

Definition at line 21 of file bt_cout_logger.h.


The documentation for this class was generated from the following files:


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 20:17:15