摘要:
1.2 增加动作 此时我们将只用一种动作:transitions,我们在下面的代码中插入了黑体的部分。 1#include <boost/statechart/transition.hpp> 2 3// 4 5struct Stopped; 6struct Active : sc::simple_state< Active, StopWatch, Stopped > 7{ 8 typedef sc::transition< EvReset, Active > reactions; 9};1011struct Running : sc::simple_stat
阅读全文