#include "config.h" TLogBackendCreatorInitContextConfig::TLogBackendCreatorInitContextConfig(const NConfig::TConfig& config) : Config(config) {} bool TLogBackendCreatorInitContextConfig::GetValue(TStringBuf name, TString& var) const { if (Config.Has(name)) { var = Config[name].Get(); return true; } return false; } TVector> TLogBackendCreatorInitContextConfig::GetChildren(TStringBuf name) const { TVector> result; const NConfig::TConfig& child = Config[name]; if (child.IsA()) { for (const auto& i: child.Get()) { result.emplace_back(MakeHolder(i)); } } else if (!child.IsNull()) { result.emplace_back(MakeHolder(child)); } return result; }