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

#include <py_record.h>

apollo::cyber::record::PyRecordWriter 的协作图:

Public 成员函数

bool Open (const std::string &path)
 
void Close ()
 
bool WriteChannel (const std::string &channel_str, const std::string &type, const std::string &proto_desc)
 
bool WriteMessage (const std::string &channel_name, const std::string &rawmessage, uint64_t time, const std::string &proto_desc="")
 
bool SetSizeOfFileSegmentation (uint64_t size_kilobytes)
 
bool SetIntervalOfFileSegmentation (uint64_t time_sec)
 
uint64_t GetMessageNumber (const std::string &channel_name) const
 
const std::string & GetMessageType (const std::string &channel_name) const
 
const std::string & GetProtoDesc (const std::string &channel_name) const
 

详细描述

在文件 py_record.h103 行定义.

成员函数说明

◆ Close()

void apollo::cyber::record::PyRecordWriter::Close ( )
inline

在文件 py_record.h107 行定义.

107{ record_writer_.Close(); }

◆ GetMessageNumber()

uint64_t apollo::cyber::record::PyRecordWriter::GetMessageNumber ( const std::string &  channel_name) const
inline

在文件 py_record.h130 行定义.

130 {
131 return record_writer_.GetMessageNumber(channel_name);
132 }
uint64_t GetMessageNumber(const std::string &channel_name) const override
Get message number by channel name.

◆ GetMessageType()

const std::string & apollo::cyber::record::PyRecordWriter::GetMessageType ( const std::string &  channel_name) const
inline

在文件 py_record.h134 行定义.

134 {
135 return record_writer_.GetMessageType(channel_name);
136 }
const std::string & GetMessageType(const std::string &channel_name) const override
Get message type by channel name.

◆ GetProtoDesc()

const std::string & apollo::cyber::record::PyRecordWriter::GetProtoDesc ( const std::string &  channel_name) const
inline

在文件 py_record.h138 行定义.

138 {
139 return record_writer_.GetProtoDesc(channel_name);
140 }
const std::string & GetProtoDesc(const std::string &channel_name) const override
Get proto descriptor string by channel name.

◆ Open()

bool apollo::cyber::record::PyRecordWriter::Open ( const std::string &  path)
inline

在文件 py_record.h105 行定义.

105{ return record_writer_.Open(path); }
bool Open(const std::string &file)
Open a record to write.

◆ SetIntervalOfFileSegmentation()

bool apollo::cyber::record::PyRecordWriter::SetIntervalOfFileSegmentation ( uint64_t  time_sec)
inline

在文件 py_record.h126 行定义.

126 {
127 return record_writer_.SetIntervalOfFileSegmentation(time_sec);
128 }
bool SetIntervalOfFileSegmentation(uint64_t time_sec)
Set max interval (Second) to segment record file.

◆ SetSizeOfFileSegmentation()

bool apollo::cyber::record::PyRecordWriter::SetSizeOfFileSegmentation ( uint64_t  size_kilobytes)
inline

在文件 py_record.h122 行定义.

122 {
123 return record_writer_.SetSizeOfFileSegmentation(size_kilobytes);
124 }
bool SetSizeOfFileSegmentation(uint64_t size_kilobytes)
Set max size (KB) to segment record file

◆ WriteChannel()

bool apollo::cyber::record::PyRecordWriter::WriteChannel ( const std::string &  channel_str,
const std::string &  type,
const std::string &  proto_desc 
)
inline

在文件 py_record.h109 行定义.

110 {
111 return record_writer_.WriteChannel(channel_str, type, proto_desc);
112 }
bool WriteChannel(const std::string &channel_name, const std::string &message_type, const std::string &proto_desc)
Write a channel to record.

◆ WriteMessage()

bool apollo::cyber::record::PyRecordWriter::WriteMessage ( const std::string &  channel_name,
const std::string &  rawmessage,
uint64_t  time,
const std::string &  proto_desc = "" 
)
inline

在文件 py_record.h114 行定义.

116 {
117 return record_writer_.WriteMessage(
118 channel_name, std::make_shared<message::RawMessage>(rawmessage), time,
119 proto_desc);
120 }
bool WriteMessage(const std::string &channel_name, const MessageT &message, const uint64_t time_nanosec, const std::string &proto_desc="")
Write a message to record.

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