From f0f847b2148833d89d829092018fd1f91bfbeb68 Mon Sep 17 00:00:00 2001 From: mvglasow Date: Sat, 3 May 2025 22:57:33 +0300 Subject: [PATCH] [openlr] Debug output for FunctionalRoadClass Signed-off-by: mvglasow --- openlr/openlr_model.cpp | 17 +++++++++++++++++ openlr/openlr_model.hpp | 1 + 2 files changed, 18 insertions(+) diff --git a/openlr/openlr_model.cpp b/openlr/openlr_model.cpp index 44b47f350..dc9d90dad 100644 --- a/openlr/openlr_model.cpp +++ b/openlr/openlr_model.cpp @@ -38,4 +38,21 @@ string DebugPrint(LinearSegmentSource source) } UNREACHABLE(); } + +string DebugPrint(FunctionalRoadClass frc) +{ + switch (frc) + { + case FunctionalRoadClass::FRC0: return "FRC0"; + case FunctionalRoadClass::FRC1: return "FRC1"; + case FunctionalRoadClass::FRC2: return "FRC2"; + case FunctionalRoadClass::FRC3: return "FRC3"; + case FunctionalRoadClass::FRC4: return "FRC4"; + case FunctionalRoadClass::FRC5: return "FRC5"; + case FunctionalRoadClass::FRC6: return "FRC6"; + case FunctionalRoadClass::FRC7: return "FRC7"; + case FunctionalRoadClass::NotAValue: return "NotAValue"; + } + UNREACHABLE(); +} } // namespace openlr diff --git a/openlr/openlr_model.hpp b/openlr/openlr_model.hpp index a5f4b8435..a33a6ce97 100644 --- a/openlr/openlr_model.hpp +++ b/openlr/openlr_model.hpp @@ -121,4 +121,5 @@ struct LinearSegment }; std::string DebugPrint(LinearSegmentSource source); +std::string DebugPrint(FunctionalRoadClass frc); } // namespace openlr