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