#include <bt_file_logger.h>
Public Member Functions | |
virtual void | callback (Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override |
FileLogger (const Tree &tree, const char *filename, uint16_t buffer_size=10) | |
virtual void | flush () override |
virtual | ~FileLogger () override |
Public Member Functions inherited from BT::StatusChangeLogger | |
bool | enabled () const |
void | enableTransitionToIdle (bool enable) |
void | setEnabled (bool enabled) |
void | seTimestampType (TimestampType type) |
bool | showsTransitionToIdle () const |
StatusChangeLogger (TreeNode *root_node) | |
virtual | ~StatusChangeLogger ()=default |
Private Attributes | |
std::vector< SerializedTransition > | buffer_ |
size_t | 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 | ( | const Tree & | tree, |
const char * | filename, | ||
uint16_t | buffer_size = 10 |
||
) |
Definition at line 6 of file bt_file_logger.cpp.
|
overridevirtual |
Definition at line 31 of file bt_file_logger.cpp.
|
overridevirtual |
Implements BT::StatusChangeLogger.
Definition at line 37 of file bt_file_logger.cpp.
|
overridevirtual |
Implements BT::StatusChangeLogger.
Definition at line 57 of file bt_file_logger.cpp.
|
private |
Definition at line 28 of file bt_file_logger.h.
|
private |
Definition at line 30 of file bt_file_logger.h.
|
private |
Definition at line 24 of file bt_file_logger.h.
|
private |
Definition at line 26 of file bt_file_logger.h.