17#ifndef CYBER_RECORD_RECORD_BASE_H_
18#define CYBER_RECORD_RECORD_BASE_H_
24#include "cyber/proto/record.pb.h"
30static const std::string& kEmptyString =
"";
59 const std::string& channel_name)
const = 0;
69 const std::string& channel_name)
const = 0;
Base class for record reader and writer.
const std::string GetFile() const
Get record file path.
const proto::Header & GetHeader() const
Get record header.
virtual const std::string & GetProtoDesc(const std::string &channel_name) const =0
Get proto descriptor string by channel name.
virtual uint64_t GetMessageNumber(const std::string &channel_name) const =0
Get message number by channel name.
virtual std::set< std::string > GetChannelList() const =0
Get channel list.
virtual ~RecordBase()=default
Destructor.
virtual const std::string & GetMessageType(const std::string &channel_name) const =0
Get message type by channel name.