static
| 82 | |
| 83 | // static |
| 84 | RoutesBuilder::Params RoutesBuilder::Params::Load(ReaderSource<FileReader> & src) |
| 85 | { |
| 86 | Params params; |
| 87 | |
| 88 | auto const type = ReadPrimitiveFromSource<int>(src); |
| 89 | CHECK_LESS(type, static_cast<int>(VehicleType::Count), ()); |
| 90 | |
| 91 | params.m_type = static_cast<VehicleType>(type); |
| 92 | params.m_checkpoints = Checkpoints(LoadPointDVector(src)); |
| 93 | |
| 94 | return params; |
| 95 | } |
| 96 | |
| 97 | // RoutesBuilder ----------------------------------------------------------------------------------- |
| 98 |
nothing calls this directly
no test coverage detected