| 308 | namespace StringUtils |
| 309 | { |
| 310 | std::string asString(TimeSystem ts) |
| 311 | { |
| 312 | switch (ts) |
| 313 | { |
| 314 | case TimeSystem::Unknown: return "UNK"; |
| 315 | case TimeSystem::Any: return "Any"; |
| 316 | case TimeSystem::GPS: return "GPS"; |
| 317 | case TimeSystem::GLO: return "GLO"; |
| 318 | case TimeSystem::GAL: return "GAL"; |
| 319 | case TimeSystem::QZS: return "QZS"; |
| 320 | case TimeSystem::BDT: return "BDT"; |
| 321 | case TimeSystem::IRN: return "IRN"; |
| 322 | case TimeSystem::UTC: return "UTC"; |
| 323 | case TimeSystem::TAI: return "TAI"; |
| 324 | case TimeSystem::TT: return "TT"; |
| 325 | case TimeSystem::TDB: return "TDB"; |
| 326 | default: return "???"; |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | |
| 331 | TimeSystem asTimeSystem(const std::string& s) |
no outgoing calls
no test coverage detected