18 #ifndef BASIC_RECORDER_HPP
19 #define BASIC_RECORDER_HPP
25 #include "../helpers/recorder_helpers.hpp"
31 #include <boost/circular_buffer.hpp>
54 inline std::string
topic()
const
74 virtual void write(
const T& msg)
76 if (!
msg.header.stamp.isZero()) {
86 boost::mutex::scoped_lock lock_write_buffer(
mutex_ );
87 typename boost::circular_buffer<T>::iterator it;
90 if (!it->header.stamp.isZero()) {
91 gr_->write(
topic_, *it, it->header.stamp);
101 boost::mutex::scoped_lock lock_bufferize(
mutex_ );
133 boost::mutex::scoped_lock lock_bufferize(
mutex_ );