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

Function keyForTopic

pj_plotting/tests/plot_widget_default_style_test.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36QString keyForTopic(PJ::CatalogModel& catalog, PJ::TopicId topic_id) {
37 for (const auto& curve : catalog.curves()) {
38 if (const auto descriptor = catalog.curveDescriptor(curve.name); descriptor && descriptor->topic_id == topic_id) {
39 return curve.name;
40 }
41 }
42 return {};
43}
44
45} // namespace
46

Callers 1

TESTFunction · 0.70

Calls 2

curvesMethod · 0.80
curveDescriptorMethod · 0.80

Tested by

no test coverage detected