Public Member Functions | Private Attributes
BT::FileLogger Class Reference

#include <bt_file_logger.h>

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

List of all members.

Public Member Functions

virtual void callback (Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override
 FileLogger (TreeNode *root_node, const char *filename, uint16_t buffer_size=10)
virtual void flush () override
virtual ~FileLogger () override

Private Attributes

std::vector< SerializedTransitionbuffer_
bool buffer_max_size_
std::ofstream file_os_
std::chrono::high_resolution_clock::time_point start_time

Detailed Description

Definition at line 11 of file bt_file_logger.h.


Constructor & Destructor Documentation

BT::FileLogger::FileLogger ( BT::TreeNode root_node,
const char *  filename,
uint16_t  buffer_size = 10 
)

Definition at line 6 of file bt_file_logger.cpp.

BT::FileLogger::~FileLogger ( ) [override, virtual]

Definition at line 31 of file bt_file_logger.cpp.


Member Function Documentation

void BT::FileLogger::callback ( Duration  timestamp,
const TreeNode node,
NodeStatus  prev_status,
NodeStatus  status 
) [override, virtual]

Implements BT::StatusChangeLogger.

Definition at line 37 of file bt_file_logger.cpp.

void BT::FileLogger::flush ( ) [override, virtual]

Implements BT::StatusChangeLogger.

Definition at line 57 of file bt_file_logger.cpp.


Member Data Documentation

Definition at line 28 of file bt_file_logger.h.

Definition at line 30 of file bt_file_logger.h.

std::ofstream BT::FileLogger::file_os_ [private]

Definition at line 24 of file bt_file_logger.h.

std::chrono::high_resolution_clock::time_point BT::FileLogger::start_time [private]

Definition at line 26 of file bt_file_logger.h.


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


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Feb 2 2019 03:50:10