| 1 | #include "helpers.h" |
| 2 | |
| 3 | void writeRaceInfo() |
| 4 | { |
| 5 | std::ofstream of("races.dox"); |
| 6 | for (auto t : Races::allRaces()) |
| 7 | { |
| 8 | if (t == Races::Unknown || t == Races::None) continue; |
| 9 | of << docEnum(t); |
| 10 | of << docBegin(t); |
| 11 | |
| 12 | of << docIntro(t) << "\n"; |
| 13 | |
| 14 | of << "<table>"; |
| 15 | |
| 16 | of << row("Worker", iconref(t.getWorker())); |
| 17 | of << row("Resource Depot", iconref(t.getResourceDepot())); |
| 18 | of << row("Refinery", iconref(t.getRefinery())); |
| 19 | of << row("Transport", iconref(t.getTransport())); |
| 20 | of << row("Supply Provider", iconref(t.getSupplyProvider())); |
| 21 | |
| 22 | of << "</table>\n"; |
| 23 | |
| 24 | // References |
| 25 | std::string const & name = t.getName(); |
| 26 | of << "@tl" << name << " @scc" << name << " @wik" << name; |
| 27 | of << docEnd(); |
| 28 | } |
| 29 | } |
no test coverage detected