context< RecoveryMachine >().log_enter(state_name);
}
-boost::statechart::result
-PG::RecoveryState::Initial::react(const Initialize&) {
- PG *pg = context< RecoveryMachine >().pg;
- pg->reset_last_warm_restart();
- return transit< Started >();
-}
-
boost::statechart::result
PG::RecoveryState::Initial::react(const MNotifyRec& notify) {
PG *pg = context< RecoveryMachine >().pg;
}
void PG::RecoveryState::Initial::exit() {
+ PG *pg = context< RecoveryMachine >().pg;
+ pg->reset_last_warm_restart();
context< RecoveryMachine >().log_exit(state_name, enter_time);
}
void exit();
typedef boost::mpl::list <
+ boost::statechart::transition< Initialize, Started >,
boost::statechart::transition< Load, Reset >,
- boost::statechart::custom_reaction< Initialize >,
boost::statechart::custom_reaction< MNotifyRec >,
boost::statechart::custom_reaction< MInfoRec >,
boost::statechart::custom_reaction< MLogRec >,
boost::statechart::result react(const MNotifyRec&);
boost::statechart::result react(const MInfoRec&);
boost::statechart::result react(const MLogRec&);
- boost::statechart::result react(const Initialize&);
};
struct Reset : boost::statechart::state< Reset, RecoveryMachine >, NamedState {