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

Method GetOwnField

lib/base/object.cpp:91–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91bool Object::GetOwnField(const String& field, Value *result) const
92{
93 Type::Ptr type = GetReflectionType();
94
95 if (!type)
96 return false;
97
98 int tid = type->GetFieldId(field);
99
100 if (tid == -1)
101 return false;
102
103 *result = GetField(tid);
104 return true;
105}
106
107Value Object::GetFieldByName(const String& field, bool sandboxed, const DebugInfo& debugInfo) const
108{

Callers 1

DoEvaluateMethod · 0.45

Calls 1

GetFieldIdMethod · 0.45

Tested by

no test coverage detected