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

Function buildSchemaColumns

pj_datastore/src/plugin_data_host.cpp:176–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176[[nodiscard]] std::vector<ColumnDescriptor> buildSchemaColumns(const TypeTreeNode& root) {
177 std::vector<ColumnDescriptor> result;
178 FieldId next_id = 0;
179 if (root.kind == TypeKind::kStruct) {
180 for (const auto& child : root.children) {
181 flattenColumnsImpl(*child, "", next_id, result);
182 }
183 } else {
184 flattenColumnsImpl(root, "", next_id, result);
185 }
186 return result;
187}
188
189[[nodiscard]] std::vector<ColumnDescriptor> effectiveColumns(const DataEngine& engine, const TopicStorage& storage) {
190 const auto& stored = storage.columnDescriptors();

Callers 1

effectiveColumnsFunction · 0.85

Calls 1

flattenColumnsImplFunction · 0.70

Tested by

no test coverage detected