qosd: прокинут kind до BaseNode

Теперь конкретные узлы не сами устанавливают себе `kind_`, а делают это
через `BaseNode` — единую точку входа.
This commit is contained in:
Сергей Маринкевич
2025-10-08 17:39:31 +07:00
parent 9b5996abb5
commit b6ff5b79f9
6 changed files with 14 additions and 18 deletions
+2 -4
View File
@@ -27,14 +27,12 @@ public:
const Config& config() const { return config_; }
private:
friend class FabricMixin<HTBNode>;
HTBNode(std::string&& name) : ComplexNode(std::move(name)) {
kind_ = "HTB";
HTBNode(std::string&& name) : ComplexNode(std::move(name), "HTB") {
Logger::get("ConDes").dbg(std::string("--- HTB constructor called for: ") + name_);
}
HTBNode(std::string&& name, Config&& config) : ComplexNode(std::move(name)),
HTBNode(std::string&& name, Config&& config) : ComplexNode(std::move(name), "HTB"),
config_(std::move(config)) {
kind_ = "HTB";
Logger::get("ConDes").dbg(std::string("--- HTB constructor called for: ") + name_);
}