Go to the documentation of this file.00001
00003
00004 #include "EventFilter/StorageManager/interface/Notifier.h"
00005 #include "EventFilter/StorageManager/interface/StateMachine.h"
00006 #include "EventFilter/StorageManager/interface/TransitionRecord.h"
00007
00008 #include <iostream>
00009
00010 using namespace std;
00011 using namespace stor;
00012
00013 void Constructed::do_entryActionWork()
00014 {
00015 TransitionRecord tr( stateName(), true );
00016 outermost_context().updateHistory( tr );
00017 outermost_context().setExternallyVisibleState( "Halted" );
00018 }
00019
00020 Constructed::Constructed( my_context c ): my_base(c)
00021 {
00022 safeEntryAction();
00023 }
00024
00025 void Constructed::do_exitActionWork()
00026 {
00027 TransitionRecord tr( stateName(), false );
00028 outermost_context().updateHistory( tr );
00029 }
00030
00031 Constructed::~Constructed()
00032 {
00033 safeExitAction();
00034 }
00035
00036 string Constructed::do_stateName() const
00037 {
00038 return string( "Constructed" );
00039 }
00040
00041 void Constructed::do_moveToFailedState( xcept::Exception& exception ) const
00042 {
00043 outermost_context().getSharedResources()->moveToFailedState( exception );
00044 }
00045
00046
00047