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

Method GetFieldInfo

lib/base/objecttype.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41Field ObjectType::GetFieldInfo(int id) const
42{
43 if (id == 0)
44 return {1, "String", "type", nullptr, nullptr, 0, 0};
45 else
46 BOOST_THROW_EXCEPTION(std::runtime_error("Invalid field ID."));
47}
48
49int ObjectType::GetFieldCount() const
50{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected