#include <py_record.h>
◆ Close()
void apollo::cyber::record::PyRecordWriter::Close |
( |
| ) |
|
|
inline |
◆ GetMessageNumber()
uint64_t apollo::cyber::record::PyRecordWriter::GetMessageNumber |
( |
const std::string & |
channel_name | ) |
const |
|
inline |
在文件 py_record.h 第 130 行定义.
130 {
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.h 第 134 行定义.
134 {
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.h 第 138 行定义.
138 {
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.h 第 105 行定义.
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.h 第 126 行定义.
126 {
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.h 第 122 行定义.
122 {
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.h 第 109 行定义.
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.h 第 114 行定义.
116 {
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.
该类的文档由以下文件生成: