| 178 | return total; |
| 179 | } |
| 180 | int 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 | |
| 201 | int Contestant::readFromJson(const QJsonObject &in) { |
| 202 | READ_JSON(in, contestantName); |
nothing calls this directly
no outgoing calls
no test coverage detected