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

Method ValidateName

lib/config/configitem.cpp:148–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146{
147public:
148 bool ValidateName(const String& type, const String& name) const override
149 {
150 ConfigItem::Ptr item = ConfigItem::GetByTypeAndName(Type::GetByName(type), name);
151
152 if (!item || item->IsAbstract())
153 return false;
154
155 return true;
156 }
157};
158
159/**

Callers

nothing calls this directly

Calls 1

IsAbstractMethod · 0.45

Tested by

no test coverage detected