MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / writeToJson

Method writeToJson

src/core/contestant.cpp:180–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 return total;
179}
180int Contestant::writeToJson(QJsonObject &out) {
181 WRITE_JSON(out, contestantName);
182 WRITE_JSON(out, checkJudged);
183 WRITE_JSON(out, sourceFile);
184 WRITE_JSON(out, compileMesaage);
185 WRITE_JSON(out, inputFiles);
186 WRITE_JSON(out, message);
187 WRITE_JSON(out, score);
188 WRITE_JSON(out, timeUsed);
189 WRITE_JSON(out, memoryUsed);
190 int judgingTime_date = judgingTime.date().toJulianDay();
191 int judgingTime_time = judgingTime.time().msecsSinceStartOfDay();
192 int judgingTime_timespec = judgingTime.timeSpec();
193 WRITE_JSON(out, judgingTime_date);
194 WRITE_JSON(out, judgingTime_time);
195 WRITE_JSON(out, judgingTime_timespec);
196 WRITE_JSON(out, compileState);
197 WRITE_JSON(out, result);
198 return 0;
199}
200
201int Contestant::readFromJson(const QJsonObject &in) {
202 READ_JSON(in, contestantName);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected