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
+3 -5
View File
@@ -31,14 +31,12 @@ public:
const Config& config() const { return config_; }
private:
friend class FabricMixin<SFQNode>;
SFQNode(std::string&& name) : BaseNode(std::move(name)) {
kind_ = "SFQ";
SFQNode(std::string&& name) : BaseNode(std::move(name), "SFQ") {
Logger::get("ConDes").dbg(std::string("--- SFQ constructor called for: ") + name_);
}
SFQNode(std::string&& name, Config&& config)
: BaseNode(std::move(name)), config_(std::move(config)) {
kind_ = "SFQ";
SFQNode(std::string&& name, Config&& config) : BaseNode(std::move(name), "SFQ"),
config_(std::move(config)) {
Logger::get("ConDes").dbg(std::string("--- SFQ constructor called for: ") + name_);
}