21#include "definition_key.h"
73 void AddChild(std::unique_ptr<TreeNode> &&child);
79 std::size_t
GetRow()
const;
117 const std::string &
GetName()
const;
133 std::size_t m_row = 0U;
136 std::vector<std::unique_ptr<TreeNode>> m_children;
137 std::unique_ptr<FrameInfo> m_frame;
138 std::unique_ptr<SignalInfo> m_signal;
Tree node for later use in model/view or other hierarchy consumers.
std::optional< SignalKey > GetSignalKey() const
const SignalInfo * GetSignal() const
Get signal payload if node is signal.
const TreeNode * GetChild(std::size_t index) const
Get child by index.
TreeNode()
Create root node.
const TreeNode * GetParent() const
const std::string & GetName() const
Get display name.
std::size_t GetChildCount() const
Get child count.
std::size_t GetRow() const
std::optional< FrameKey > GetFrameKey() const
void AddChild(std::unique_ptr< TreeNode > &&child)
Add child node.
NodeType GetType() const
Get node type.
const FrameInfo * GetFrame() const
Get frame payload if node is frame.
Parsed CAN frame metadata.
Parsed CAN signal metadata.
Describes one CAN frame from a DBC file.
Describes one signal inside a DBC frame.
NodeType
Type of a tree node.