62 for (
const std::string& record : source_record_files_) {
63 const auto reader = std::make_shared<RecordReader>(
66 std::numeric_limits<uint64_t>::max(),
67 ChannelPool::Instance()->GetAllChannels());
69 for (
const auto& msg : viewer) {
76 IntervalPool::Instance()->ReorgIntervals();
77 IntervalPool::Instance()->PrintIntervals();
78 for (
const std::string& record : source_record_files_) {
79 const auto reader = std::make_shared<RecordReader>(
82 std::numeric_limits<uint64_t>::max(),
83 ChannelPool::Instance()->GetAllChannels());
84 for (
const auto& msg : viewer) {
87 if (IntervalPool::Instance()->MessageFallIntoRange(msg.time) ||
89 writer_->WriteChannel(msg.channel_name,
90 reader->GetMessageType(msg.channel_name),
91 reader->GetProtoDesc(msg.channel_name));
92 writer_->WriteMessage(msg.channel_name, msg.content, msg.time);
std::string GetDefaultOutputFile() const override
bool Init(const SmartRecordTrigger &trigger_conf) override