Implements the IWritable interface used by McapWriter by wrapping a std::ostream stream.
More...
#include <writer.hpp>
Implements the IWritable interface used by McapWriter by wrapping a std::ostream stream.
Definition at line 174 of file writer.hpp.
◆ StreamWriter()
mcap::StreamWriter::StreamWriter |
( |
std::ostream & |
stream | ) |
|
◆ end()
void mcap::StreamWriter::end |
( |
| ) |
|
|
overridevirtual |
Called when the writer is finished writing data to the output MCAP file.
Implements mcap::IWritable.
◆ handleWrite()
void mcap::StreamWriter::handleWrite |
( |
const std::byte * |
data, |
|
|
uint64_t |
size |
|
) |
| |
|
overridevirtual |
◆ size()
uint64_t mcap::StreamWriter::size |
( |
| ) |
const |
|
overridevirtual |
Returns the current size of the file in bytes. This must be equal to the sum of all size
parameters passed to write()
.
Implements mcap::IWritable.
◆ size_
uint64_t mcap::StreamWriter::size_ = 0 |
|
private |
◆ stream_
std::ostream& mcap::StreamWriter::stream_ |
|
private |
The documentation for this class was generated from the following file: