25 SCORE_COMMAND_DECL(CommandFactoryName(),
SetMinDuration,
"Set interval minimum")
27 static const constexpr auto corresponding_member = &IntervalDurations::minDuration;
31 , m_oldVal{cst.duration.minDuration()}
33 , m_oldMinNull{cst.duration.isMinNull()}
34 , m_newMinNull{isMinNull}
41 auto& cstrDuration = cst.duration;
42 if(m_newVal < TimeVal::zero())
43 m_newVal = TimeVal::zero();
44 if(m_newVal > cstrDuration.defaultDuration())
45 m_newVal = cstrDuration.defaultDuration();
50 auto& cstrDuration = m_path.find(ctx).duration;
51 cstrDuration.setMinNull(m_oldMinNull);
52 cstrDuration.setMinDuration(m_oldVal);
57 auto& cstrDuration = m_path.find(ctx).duration;
58 cstrDuration.setMinNull(m_newMinNull);
59 cstrDuration.setMinDuration(m_newVal);
65 s << m_path << m_oldVal << m_newVal << m_oldMinNull << m_newMinNull;
69 s >> m_path >> m_oldVal >> m_newVal >> m_oldMinNull >> m_newMinNull;
77 bool m_oldMinNull{}, m_newMinNull{};
Definition DocumentContext.hpp:18