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

Method setDataEngineTarget

pj_runtime/src/DataSourceRuntimeHost.cpp:344–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344void DataSourceRuntimeHost::setDataEngineTarget(DataEngine* target) {
345 // Mirrors setObjectStoreTarget but for scalar writes. Retargets the
346 // source-level write host and every parser binding so all scalar pushes
347 // land on the secondary engine during pause and on the primary on resume.
348 source_write_host_.setTarget(target);
349 for (auto& [_id, binding] : parser_bindings_) {
350 if (binding.write_host != nullptr) {
351 binding.write_host->setTarget(target);
352 }
353 }
354}
355
356bool DataSourceRuntimeHost::fail(PJ_error_t* out_error, const char* message) noexcept {
357 last_error_ = message;

Callers 2

TEST_FFunction · 0.80
onPauseToggledMethod · 0.80

Calls 1

setTargetMethod · 0.80

Tested by 1

TEST_FFunction · 0.64