gz/transport/log/Recorder.hh
Go to the documentation of this file.
Records ignition transport topics This class makes it easy to record topics to a log file....
Definition: gz/transport/log/Recorder.hh:51
RecorderError AddTopic(const std::string &_topic)
Add a topic to be recorded (exact match only)
void Stop()
Stop recording topics. This function will block if there is any data in the internal buffer that has ...
int64_t AddTopic(const std::regex &_topic)
Add a topic to be recorded (regex match)
void SetBufferSize(std::size_t _size)
Set the maximum size (in MB) of the buffer that is used to store data from topic callbacks....
RecorderError Sync(const Clock *_clockIn)
Synchronize recording with the given clock.
RecorderError Start(const std::string &_file)
Begin recording topics.
std::size_t BufferSize() const
Get the buffer size of the queue that is used to store data from topic callbacks.
std::string Filename() const
Get the name of the log file.
const std::set< std::string > & Topics() const
Get the set of topics have have been added.
Definition: gz/transport/log/Batch.hh:28
@ INVALID_TOPIC
@ TOPIC_NOT_FOUND
@ ALREADY_RECORDING
@ ALREADY_SUBSCRIBED_TO_TOPIC
@ FAILED_TO_OPEN
@ FAILED_TO_SUBSCRIBE