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

Function toolboxCreateDataSource

pj_datastore/src/plugin_data_host.cpp:1400–1410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1398}
1399
1400bool toolboxCreateDataSource(
1401 void* ctx, PJ_string_view_t name, DataSourceHandle* out_source, PJ_error_t* out_error) noexcept {
1402 return guardHostCallback(out_error, [&] {
1403 auto* impl = static_cast<DatastoreToolboxHostState*>(ctx);
1404 if (!impl->core.write.createDataSource(toStringView(name), out_source)) {
1405 propagateError(out_error, impl->core.write.lastError());
1406 return false;
1407 }
1408 return true;
1409 });
1410}
1411
1412bool toolboxEnsureTopic(
1413 void* ctx, DataSourceHandle source, PJ_string_view_t topic_name, TopicHandle* out_topic,

Callers

nothing calls this directly

Calls 5

guardHostCallbackFunction · 0.85
propagateErrorFunction · 0.85
createDataSourceMethod · 0.80
lastErrorMethod · 0.80
toStringViewFunction · 0.70

Tested by

no test coverage detected