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

Method getTypeTree

pj_datastore/src/reader.cpp:135–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135const TypeTreeNode* DataReader::getTypeTree(TopicId topic_id) const {
136 auto lock = engine_.lockEngine();
137 const TopicStorage* storage = engine_.getTopicStorage(topic_id);
138 if (storage == nullptr) {
139 return nullptr;
140 }
141 SchemaId schema_id = storage->descriptor().schema_id;
142 return engine_.typeRegistry().lookup(schema_id);
143}
144
145std::optional<TopicMetadata> DataReader::getMetadata(TopicId topic_id) const {
146 auto lock = engine_.lockEngine();

Callers 2

rebuildNowMethod · 0.80
TESTFunction · 0.80

Calls 4

lockEngineMethod · 0.80
getTopicStorageMethod · 0.80
descriptorMethod · 0.80
lookupMethod · 0.45

Tested by 1

TESTFunction · 0.64