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

Method EmitArrayItems

lib/base/configwriter.cpp:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void ConfigWriter::EmitArrayItems(std::ostream& fp, int indentLevel, const Array::Ptr& val)
43{
44 bool first = true;
45
46 ObjectLock olock(val);
47 for (const Value& item : val) {
48 if (first)
49 first = false;
50 else
51 fp << ", ";
52
53 EmitValue(fp, indentLevel, item);
54 }
55}
56
57void ConfigWriter::EmitScope(std::ostream& fp, int indentLevel, const Dictionary::Ptr& val,
58 const Array::Ptr& imports, bool splitDot)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected