22 #include "ad/physics/SpeedValidInputRange.hpp"
24 #include "spdlog/fmt/ostr.h"
25 #include "spdlog/spdlog.h"
44 bool inValidInputRange =
true;
48 if (!inValidInputRange && logErrors)
50 spdlog::error(
"withinValidInputRange(::ad::rss::world::Velocity)>> {} has invalid member",
55 if (inValidInputRange)
58 if (!inValidInputRange && logErrors)
61 "withinValidInputRange(::ad::rss::world::Velocity)>> {} element {} out of valid input range [{}, {}]",
64 ::ad::physics::Speed(0.),
69 if (inValidInputRange)
72 if (!inValidInputRange && logErrors)
75 "withinValidInputRange(::ad::rss::world::Velocity)>> {} element {} out of valid input range [{}, {}]",
79 ::ad::physics::Speed(100.));
83 if (inValidInputRange)
86 if (!inValidInputRange && logErrors)
89 "withinValidInputRange(::ad::rss::world::Velocity)>> {} element {} out of valid input range [{}, {}]",
92 ::ad::physics::Speed(-100.),
97 if (inValidInputRange)
100 if (!inValidInputRange && logErrors)
103 "withinValidInputRange(::ad::rss::world::Velocity)>> {} element {} out of valid input range [{}, {}]",
107 ::ad::physics::Speed(100.));
111 return inValidInputRange;