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

Method descriptorForPath

pj_runtime/src/CatalogModel.cpp:402–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402std::optional<CurveDescriptor> CatalogModel::descriptorForPath(
403 DatasetId dataset_id, const QString& topic, const QString& field) const {
404 for (const auto& [key, item] : impl_->items) {
405 (void)key;
406 if (item.dataset_id != dataset_id || item.topic_name != topic || !isScalarField(item)) {
407 continue;
408 }
409 if (asScalarField(item)->field_path == field) {
410 return curveFromItem(item);
411 }
412 }
413 return std::nullopt;
414}
415
416void CatalogModel::rebuildFromDatastore() {
417 rebuildNow();

Callers 3

TESTFunction · 0.80
restoreDataProcessorsMethod · 0.80
resolveSeriesPathFunction · 0.80

Calls 3

isScalarFieldFunction · 0.85
asScalarFieldFunction · 0.85
curveFromItemFunction · 0.85

Tested by 1

TESTFunction · 0.64