CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Normal.cc
Go to the documentation of this file.
1 // $Id: Normal.cc,v 1.8 2009/09/29 07:57:56 mommsen Exp $
3 
6 
7 #include <iostream>
8 
9 using namespace std;
10 using namespace stor;
11 
12 void Normal::do_entryActionWork()
13 {
14  TransitionRecord tr( stateName(), true );
15  outermost_context().updateHistory( tr );
16 }
17 
18 Normal::Normal( my_context c ): my_base(c)
19 {
21 }
22 
24 {
25  TransitionRecord tr( stateName(), false );
26  outermost_context().updateHistory( tr );
27 }
28 
30 {
32 }
33 
34 string Normal::do_stateName() const
35 {
36  return std::string( "Normal" );
37 }
38 
40 {
41  outermost_context().getSharedResources()->moveToFailedState( exception );
42 }
43 
std::string stateName() const
Definition: Operations.cc:39
virtual void do_moveToFailedState(xcept::Exception &exception) const
Definition: Normal.cc:39
void safeExitAction()
Definition: Operations.cc:108
virtual ~Normal()
Definition: Normal.cc:29
virtual void do_exitActionWork()
Definition: Normal.cc:23
virtual std::string do_stateName() const
Definition: Normal.cc:34
void safeEntryAction()
Definition: Operations.cc:77