gz/transport/log/Log.hh
Go to the documentation of this file.
Query for all the topics.
Definition: gz/transport/log/QueryOptions.hh:261
Holds the result of a query for messages.
Definition: gz/transport/log/Batch.hh:38
The Descriptor class provides meta-information about what a log contains. This may be useful for dete...
Definition: gz/transport/log/Descriptor.hh:42
std::chrono::nanoseconds EndTime() const
Get end time of the log, or in other words the time of the last message found in the log.
bool Valid() const
Indicate if a log has been successfully opened.
std::chrono::nanoseconds StartTime() const
Get start time of the log, or in other words the time of the first message found in the log.
bool Open(const std::string &_file, std::ios_base::openmode _mode=std::ios_base::in)
Open a log file.
bool InsertMessage(const std::chrono::nanoseconds &_time, const std::string &_topic, const std::string &_type, const void *_data, std::size_t _len)
Insert a message into the log file.
Batch QueryMessages(const QueryOptions &_options=AllTopics())
Get messages according to the specified options. By default, it will query all messages over the enti...
std::string Version() const
Get the schema version of the opened log.
const log::Descriptor * Descriptor() const
Get a Descriptor for this log. The Descriptor will be generated the first time that this function is ...
The QueryOptions interface is used by Log::QueryMessages() to determine which messages are retrieved ...
Definition: gz/transport/log/QueryOptions.hh:42
Definition: gz/transport/log/Batch.hh:28
const std::string SchemaLocationEnvVar
Name of Environment variable containing path to schema.
Definition: gz/transport/log/Log.hh:38