#include <bt_file_logger.h>
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< SerializedTransition > | buffer_ |
bool | buffer_max_size_ |
std::ofstream | file_os_ |
std::chrono::high_resolution_clock::time_point | start_time |
Definition at line 11 of file bt_file_logger.h.
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.
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.
std::vector<SerializedTransition> BT::FileLogger::buffer_ [private] |
Definition at line 28 of file bt_file_logger.h.
bool BT::FileLogger::buffer_max_size_ [private] |
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.