/** * @file dbc_tree_builder.cpp * @brief * * Created: 2026-03-13 * Author: Deeaitch (Dim. Himro) * * Licensed under the MIT License. * See LICENSE file in the project root for full license text. */ #include "dbc_tree_builder.h" std::unique_ptr DbcTreeBuilder::Build(const DbcDatabase &database) const { std::unique_ptr root = std::make_unique(); for (const FrameInfo &frame : database.frames) { std::unique_ptr frameNode = std::make_unique(frame); for (const SignalInfo &signal : frame.signals) { std::unique_ptr signalNode = std::make_unique(signal); frameNode->AddChild(std::move(signalNode)); } root->AddChild(std::move(frameNode)); } return root; }