25 SCORE_COMMAND_DECL(CommandFactoryName(),
SetMaxDuration,
"Set interval maximum")
27 static const constexpr auto corresponding_member
28 = &IntervalDurations::maxDuration;
33 , m_oldVal{cst.duration.maxDuration()}
34 , m_newVal{std::move(newval)}
35 , m_newInfinite{isInfinite}
36 , m_oldInfinite{cst.duration.isMaxInfinite()}
43 auto& cstrDuration = cst.duration;
44 if(m_newVal < cstrDuration.defaultDuration())
45 m_newVal = cstrDuration.defaultDuration();
50 m_path.find(ctx).duration.setMaxInfinite(m_oldInfinite);
51 m_path.find(ctx).duration.setMaxDuration(m_oldVal);
56 m_path.find(ctx).duration.setMaxInfinite(m_newInfinite);
57 m_path.find(ctx).duration.setMaxDuration(m_newVal);
63 s << m_path << m_oldVal << m_newVal << m_newInfinite << m_oldInfinite;
67 s >> m_path >> m_oldVal >> m_newVal >> m_newInfinite >> m_oldInfinite;
Definition DocumentContext.hpp:18