#include <abstract_logger.h>
Public Member Functions | |
virtual void | callback (BT::Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status)=0 |
bool | enabled () const |
void | enableTransitionToIdle (bool enable) |
virtual void | flush ()=0 |
void | setEnabled (bool enabled) |
void | seTimestampType (TimestampType type) |
bool | showsTransitionToIdle () const |
StatusChangeLogger (TreeNode *root_node) | |
virtual | ~StatusChangeLogger () |
Private Attributes | |
bool | enabled_ |
BT::TimePoint | first_timestamp_ |
bool | show_transition_to_idle_ |
std::vector < TreeNode::StatusChangeSubscriber > | subscribers_ |
TimestampType | type_ |
Definition at line 17 of file abstract_logger.h.
BT::StatusChangeLogger::StatusChangeLogger | ( | TreeNode * | root_node | ) | [inline] |
Definition at line 64 of file abstract_logger.h.
virtual BT::StatusChangeLogger::~StatusChangeLogger | ( | ) | [virtual] |
virtual void BT::StatusChangeLogger::callback | ( | BT::Duration | timestamp, |
const TreeNode & | node, | ||
NodeStatus | prev_status, | ||
NodeStatus | status | ||
) | [pure virtual] |
Implemented in BT::StdCoutLogger, BT::PublisherZMQ, BT::FileLogger, and BT::MinitraceLogger.
bool BT::StatusChangeLogger::enabled | ( | ) | const [inline] |
Definition at line 38 of file abstract_logger.h.
void BT::StatusChangeLogger::enableTransitionToIdle | ( | bool | enable | ) | [inline] |
Definition at line 49 of file abstract_logger.h.
virtual void BT::StatusChangeLogger::flush | ( | ) | [pure virtual] |
Implemented in BT::StdCoutLogger, BT::PublisherZMQ, BT::FileLogger, and BT::MinitraceLogger.
void BT::StatusChangeLogger::setEnabled | ( | bool | enabled | ) | [inline] |
Definition at line 28 of file abstract_logger.h.
void BT::StatusChangeLogger::seTimestampType | ( | TimestampType | type | ) | [inline] |
Definition at line 33 of file abstract_logger.h.
bool BT::StatusChangeLogger::showsTransitionToIdle | ( | ) | const [inline] |
Definition at line 44 of file abstract_logger.h.
bool BT::StatusChangeLogger::enabled_ [private] |
Definition at line 55 of file abstract_logger.h.
Definition at line 59 of file abstract_logger.h.
bool BT::StatusChangeLogger::show_transition_to_idle_ [private] |
Definition at line 56 of file abstract_logger.h.
std::vector<TreeNode::StatusChangeSubscriber> BT::StatusChangeLogger::subscribers_ [private] |
Definition at line 57 of file abstract_logger.h.
TimestampType BT::StatusChangeLogger::type_ [private] |
Definition at line 58 of file abstract_logger.h.