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

Method GetFieldId

lib/base/type.cpp:226–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226int TypeType::GetFieldId(const String& name) const
227{
228 int base_field_count = GetBaseType()->GetFieldCount();
229
230 if (name == "name")
231 return base_field_count + 0;
232 else if (name == "prototype")
233 return base_field_count + 1;
234 else if (name == "base")
235 return base_field_count + 2;
236
237 return GetBaseType()->GetFieldId(name);
238}
239
240Field TypeType::GetFieldInfo(int id) const
241{

Callers 13

SerializeObjectAttrsMethod · 0.45
CreateObjectConfigMethod · 0.45
DeserializeObjectFunction · 0.45
HasOwnFieldMethod · 0.45
GetOwnFieldMethod · 0.45
GetFieldByNameMethod · 0.45
SetFieldByNameMethod · 0.45
ObjectNotifyAttributeFunction · 0.45
ModifyAttributeMethod · 0.45
RestoreAttributeMethod · 0.45

Calls 1

GetFieldCountMethod · 0.45

Tested by

no test coverage detected