23 #include "spdlog/fmt/ostr.h"
24 #include "spdlog/spdlog.h"
38 bool inValidInputRange = (input == ::ad::map::intersection::IntersectionType::Unknown)
40 || (input == ::ad::map::intersection::IntersectionType::Stop)
42 || (input == ::ad::map::intersection::IntersectionType::HasWay)
44 || (input == ::ad::map::intersection::IntersectionType::PriorityToRight)
46 || (input == ::ad::map::intersection::IntersectionType::TrafficLight);
47 if (!inValidInputRange && logErrors)
49 spdlog::error(
"withinValidInputRange(::ad::map::intersection::IntersectionType)>> {}, raw value: {} ",
51 static_cast<int32_t
>(input));
53 return inValidInputRange;