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

Method IsValidType

lib/remote/templatequeryhandler.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 bool IsValidType(const String& type) const override
64 {
65 Type::Ptr ptype = Type::GetByName(type);
66
67 if (!ptype)
68 return false;
69
70 return ConfigObject::TypeInstance->IsAssignableFrom(ptype);
71 }
72
73 String GetPluralName(const String& type) const override
74 {

Callers

nothing calls this directly

Calls 1

IsAssignableFromMethod · 0.80

Tested by

no test coverage detected