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

Method AddArgumentHelper

lib/icinga/macroprocessor.cpp:408–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408void MacroProcessor::AddArgumentHelper(const Array::Ptr& args, const String& key, const String& value,
409 bool add_key, bool add_value, const Value& separator)
410{
411 if (add_key && separator.GetType() != ValueEmpty && add_value) {
412 args->Add(key + separator + value);
413 } else {
414 if (add_key)
415 args->Add(key);
416
417 if (add_value)
418 args->Add(value);
419 }
420}
421
422Value MacroProcessor::EscapeMacroShellArg(const Value& value)
423{

Callers

nothing calls this directly

Calls 2

GetTypeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected