MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetObject

Method GetObject

lib/base/configobject.cpp:679–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679ConfigObject::Ptr ConfigObject::GetObject(const String& type, const String& name)
680{
681 Type::Ptr ptype = Type::GetByName(type);
682 auto *ctype = dynamic_cast<ConfigType *>(ptype.get());
683
684 if (!ctype)
685 return nullptr;
686
687 return ctype->GetObject(name);
688}
689
690ConfigObject::Ptr ConfigObject::GetZone() const
691{

Callers 2

ValidateNameMethod · 0.45
OnAllConfigLoadedMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected