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

Method EmitArray

lib/base/configwriter.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void ConfigWriter::EmitArray(std::ostream& fp, int indentLevel, const Array::Ptr& val)
34{
35 fp << "[ ";
36 EmitArrayItems(fp, indentLevel, val);
37 if (val->GetLength() > 0)
38 fp << " ";
39 fp << "]";
40}
41
42void ConfigWriter::EmitArrayItems(std::ostream& fp, int indentLevel, const Array::Ptr& val)
43{

Callers

nothing calls this directly

Calls 1

GetLengthMethod · 0.45

Tested by

no test coverage detected