MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / beginRow

Method beginRow

pj_datastore/src/writer.cpp:263–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261// ---------------------------------------------------------------------------
262
263PJ::Status DataWriter::beginRow(TopicId topic_id, Timestamp t) {
264 auto* storage = impl_->engine.getTopicStorage(topic_id);
265 if (storage == nullptr) {
266 return PJ::unexpected(fmt::format("Topic {} not found", topic_id));
267 }
268 auto& builder = getOrCreateBuilder(topic_id);
269 // Out-of-order timestamps are accepted (multi-publisher topics interleave
270 // regressing stamps); the builder sorts rows at seal.
271 builder.beginRow(t);
272 return PJ::okStatus();
273}
274
275PJ::Status DataWriter::finishRow(PJ::TopicId topic_id) {
276 auto it = impl_->builders.find(topic_id);

Callers 1

appendScalarMethod · 0.45

Calls 1

getTopicStorageMethod · 0.80

Tested by

no test coverage detected