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.2 2011/11/08 10:48:40 mommsen Exp $
3 
8 
9 #include <iostream>
10 
11 using namespace std;
12 using namespace stor;
13 
14 void Constructed::do_entryActionWork()
15 {
16  TransitionRecord tr( stateName(), true );
17  outermost_context().updateHistory( tr );
18  outermost_context().setExternallyVisibleState( "Halted" );
19 }
20 
21 Constructed::Constructed( my_context c ): my_base(c)
22 {
24 }
25 
27 {
28  TransitionRecord tr( stateName(), false );
29  outermost_context().updateHistory( tr );
30 }
31 
33 {
35 }
36 
38 {
39  return string( "Constructed" );
40 }
41 
43 {
44  outermost_context().getSharedResources()->alarmHandler_->moveToFailedState( exception );
45 }
46 
47 
48 
std::string stateName() const
Definition: Operations.cc:39
virtual std::string do_stateName() const
Definition: Constructed.cc:37
void safeExitAction()
Definition: Operations.cc:108
virtual void do_moveToFailedState(xcept::Exception &exception) const
Definition: Constructed.cc:42
virtual ~Constructed()
Definition: Constructed.cc:32
virtual void do_exitActionWork()
Definition: Constructed.cc:26
void safeEntryAction()
Definition: Operations.cc:77