qosd: прокинут kind до BaseNode
Теперь конкретные узлы не сами устанавливают себе `kind_`, а делают это через `BaseNode` — единую точку входа.
This commit is contained in:
@@ -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_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user