MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / WriteClassJson

Method WriteClassJson

apps/tools/Tools/commands/ConfigCommand.cpp:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void ConfigCommand::WriteClassJson(std::ostream& out, const ParamClass& cls, int indent)
119{
120 out << "{\n";
121 for (int i = 0; i < cls.GetEntryCount(); i++)
122 {
123 if (i > 0)
124 out << ",\n";
125 WriteEntryJson(out, cls.GetEntry(i), indent + 1);
126 }
127 out << "\n" << Indent(indent) << "}";
128}
129
130void ConfigCommand::CollectStrings(const ParamClass& cls, const std::string& path, const std::string& prefix,
131 std::vector<std::pair<std::string, std::string>>& out)

Callers

nothing calls this directly

Calls 2

IndentFunction · 0.70
GetEntryCountMethod · 0.45

Tested by

no test coverage detected