17 #ifndef CYBER_RECORD_RECORD_BASE_H_ 18 #define CYBER_RECORD_RECORD_BASE_H_ 24 #include "cyber/proto/record.pb.h" 30 static const std::string& kEmptyString =
"";
49 virtual uint64_t
GetMessageNumber(
const std::string& channel_name)
const = 0;
59 const std::string& channel_name)
const = 0;
69 const std::string& channel_name)
const = 0;
102 #endif // CYBER_RECORD_RECORD_BASE_H_ bool is_opened_
Definition: record_base.h:95
proto::Header header_
Definition: record_base.h:94
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
std::string file_
Definition: record_base.h:93
const proto::Header & GetHeader() const
Get record header.
Definition: record_base.h:83
virtual std::set< std::string > GetChannelList() const =0
Get channel list.
virtual ~RecordBase()=default
Destructor.
Base class for record reader and writer.
Definition: record_base.h:35
virtual const std::string & GetMessageType(const std::string &channel_name) const =0
Get message type by channel name.
virtual uint64_t GetMessageNumber(const std::string &channel_name) const =0
Get message number by channel name.
virtual const std::string & GetProtoDesc(const std::string &channel_name) const =0
Get proto descriptor string by channel name.
const std::string GetFile() const
Get record file path.
Definition: record_base.h:90