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

Method EmitValue

lib/base/configwriter.cpp:110–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void ConfigWriter::EmitValue(std::ostream& fp, int indentLevel, const Value& val)
111{
112 if (val.IsObjectType<Array>())
113 EmitArray(fp, indentLevel, val);
114 else if (val.IsObjectType<Dictionary>())
115 EmitScope(fp, indentLevel, val);
116 else if (val.IsObjectType<ConfigIdentifier>())
117 EmitIdentifier(fp, static_cast<ConfigIdentifier::Ptr>(val)->GetName(), false);
118 else if (val.IsString())
119 EmitString(fp, val);
120 else if (val.IsNumber())
121 EmitNumber(fp, val);
122 else if (val.IsBoolean())
123 EmitBoolean(fp, val);
124 else if (val.IsEmpty())
125 EmitEmpty(fp);
126}
127
128void ConfigWriter::EmitRaw(std::ostream& fp, const String& val)
129{

Callers

nothing calls this directly

Calls 5

IsStringMethod · 0.80
IsNumberMethod · 0.80
IsBooleanMethod · 0.80
GetNameMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected