Apollo 10.0
自动驾驶开放平台
apollo::cyber::record::RecordBase类 参考abstract

Base class for record reader and writer. 更多...

#include <record_base.h>

类 apollo::cyber::record::RecordBase 继承关系图:
apollo::cyber::record::RecordBase 的协作图:

Public 成员函数

virtual ~RecordBase ()=default
 Destructor.
 
virtual uint64_t GetMessageNumber (const std::string &channel_name) const =0
 Get message number by channel name.
 
virtual const std::string & GetMessageType (const std::string &channel_name) const =0
 Get message type by channel name.
 
virtual const std::string & GetProtoDesc (const std::string &channel_name) const =0
 Get proto descriptor string by channel name.
 
virtual std::set< std::string > GetChannelList () const =0
 Get channel list.
 
const proto::HeaderGetHeader () const
 Get record header.
 
const std::string GetFile () const
 Get record file path.
 

Protected 属性

std::string file_
 
proto::Header header_
 
bool is_opened_ = false
 

详细描述

Base class for record reader and writer.

在文件 record_base.h35 行定义.

构造及析构函数说明

◆ ~RecordBase()

virtual apollo::cyber::record::RecordBase::~RecordBase ( )
virtualdefault

Destructor.

成员函数说明

◆ GetChannelList()

virtual std::set< std::string > apollo::cyber::record::RecordBase::GetChannelList ( ) const
pure virtual

Get channel list.

返回
List container with all channel name string.

apollo::cyber::record::RecordReader , 以及 apollo::cyber::record::RecordWriter 内被实现.

◆ GetFile()

const std::string apollo::cyber::record::RecordBase::GetFile ( ) const
inline

Get record file path.

返回
Record file path.

在文件 record_base.h90 行定义.

90{ return file_; }

◆ GetHeader()

const proto::Header & apollo::cyber::record::RecordBase::GetHeader ( ) const
inline

Get record header.

返回
Record header.

在文件 record_base.h83 行定义.

83{ return header_; }

◆ GetMessageNumber()

virtual uint64_t apollo::cyber::record::RecordBase::GetMessageNumber ( const std::string &  channel_name) const
pure virtual

Get message number by channel name.

参数
channel_name
返回
Message number.

apollo::cyber::record::RecordReader , 以及 apollo::cyber::record::RecordWriter 内被实现.

◆ GetMessageType()

virtual const std::string & apollo::cyber::record::RecordBase::GetMessageType ( const std::string &  channel_name) const
pure virtual

Get message type by channel name.

参数
channel_name
返回
Message type.

apollo::cyber::record::RecordReader , 以及 apollo::cyber::record::RecordWriter 内被实现.

◆ GetProtoDesc()

virtual const std::string & apollo::cyber::record::RecordBase::GetProtoDesc ( const std::string &  channel_name) const
pure virtual

Get proto descriptor string by channel name.

参数
channel_name
返回
Proto descriptor string by channel name.

apollo::cyber::record::RecordReader , 以及 apollo::cyber::record::RecordWriter 内被实现.

类成员变量说明

◆ file_

std::string apollo::cyber::record::RecordBase::file_
protected

在文件 record_base.h93 行定义.

◆ header_

proto::Header apollo::cyber::record::RecordBase::header_
protected

在文件 record_base.h94 行定义.

◆ is_opened_

bool apollo::cyber::record::RecordBase::is_opened_ = false
protected

在文件 record_base.h95 行定义.


该类的文档由以下文件生成: