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

Method SetExtension

lib/base/configobject.cpp:42–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void ConfigObject::SetExtension(const String& key, const Value& value)
43{
44 Dictionary::Ptr extensions = GetExtensions();
45
46 if (!extensions) {
47 extensions = new Dictionary();
48 SetExtensions(extensions);
49 }
50
51 extensions->Set(key, value);
52}
53
54Value ConfigObject::GetExtension(const String& key)
55{

Callers 5

DeleteObjectHelperMethod · 0.80
GetOrCreateByObjectMethod · 0.80
ExecuteCheckFromQueueMethod · 0.80
NotificationHandlerFunction · 0.80
CheckNotificationFunction · 0.80

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected