CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Failed.cc
Go to the documentation of this file.
1 
8 
9 using std::string;
10 using namespace evf::rb_statemachine;
11 
12 // entry action, state notification, state action
13 //______________________________________________________________________________
15 }
16 
18  SharedResourcesPtr_t res = outermost_context().getSharedResources();
19  LOG4CPLUS_INFO(res->log_, "--> ResourceBroker: NEW STATE: " << stateName());
20  outermost_context().setExternallyVisibleState(stateName());
21  outermost_context().setInternalStateName(stateName());
22  // notify RCMS of the new state
23  outermost_context().rcmsStateChangeNotify();
24 }
25 
26 // construction / destruction
27 //______________________________________________________________________________
28 Failed::Failed(my_context c) :
29  my_base(c) {
31 }
32 
35 }
36 
37 // exit action, state name, move to failed state
38 //______________________________________________________________________________
40 }
41 
42 string Failed::do_stateName() const {
43  return string("Failed");
44 }
45 
47  // nothing to do here
48 }
boost::shared_ptr< SharedResources > SharedResourcesPtr_t
virtual std::string do_stateName() const
Definition: Failed.cc:42
virtual void do_exitActionWork()
Definition: Failed.cc:39
virtual void do_entryActionWork()
Definition: Failed.cc:14
virtual void do_stateNotify()
Definition: Failed.cc:17
virtual void do_moveToFailedState(xcept::Exception &exception) const
Definition: Failed.cc:46
std::string stateName() const
Definition: BaseState.cc:31