22 #include "ad/physics/DistanceValidInputRange.hpp"
23 #include "ad/physics/DurationValidInputRange.hpp"
24 #include "ad/physics/SpeedValidInputRange.hpp"
29 #include "spdlog/fmt/ostr.h"
30 #include "spdlog/spdlog.h"
47 bool inValidInputRange =
true;
54 if (!inValidInputRange && logErrors)
56 spdlog::error(
"withinValidInputRange(::ad::rss::world::RssDynamics)>> {} has invalid member",
61 if (inValidInputRange)
65 if (!inValidInputRange && logErrors)
68 "withinValidInputRange(::ad::rss::world::RssDynamics)>> {} element {} out of valid input range [{}, {}]",
71 ::ad::physics::Distance(0.),
72 ::ad::physics::Distance(1.));
76 if (inValidInputRange)
80 if (!inValidInputRange && logErrors)
83 "withinValidInputRange(::ad::rss::world::RssDynamics)>> {} element {} out of valid input range [{}, {}]",
86 ::ad::physics::Duration(0.),
87 ::ad::physics::Duration(10.));
91 return inValidInputRange;