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

Function HandleUserWrite

lib/base/configuration.cpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62template<typename T>
63void HandleUserWrite(const String& name, T *target, const T& value, bool readOnly)
64{
65 if (readOnly)
66 BOOST_THROW_EXCEPTION(ScriptError("Configuration attribute '" + name + "' is read-only."));
67
68 *target = value;
69}
70
71String Configuration::GetApiBindHost() const
72{

Callers 15

SetApiBindHostMethod · 0.85
SetApiBindPortMethod · 0.85
SetAttachDebuggerMethod · 0.85
SetCacheDirMethod · 0.85
SetConcurrencyMethod · 0.85
SetConfigDirMethod · 0.85
SetDataDirMethod · 0.85
SetEventEngineMethod · 0.85
SetIncludeConfDirMethod · 0.85
SetInitRunDirMethod · 0.85
SetLogDirMethod · 0.85
SetModAttrPathMethod · 0.85

Calls 1

ScriptErrorClass · 0.85

Tested by

no test coverage detected