CMS 3D CMS Logo

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