CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions

stor::Normal Class Reference

#include <StateMachine.h>

Inheritance diagram for stor::Normal:
state stor::Operations

List of all members.

Public Types

typedef bsc::transition< Fail,
Failed
FT
typedef boost::mpl::list< FTreactions

Public Member Functions

 Normal (my_context)
virtual ~Normal ()

Private Member Functions

virtual void do_entryActionWork ()
virtual void do_exitActionWork ()
virtual void do_moveToFailedState (xcept::Exception &exception) const
virtual std::string do_stateName () const

Detailed Description

Normal state

Author:
mommsen
Revision:
1.11
Date:
2011/03/07 15:31:32

Definition at line 197 of file StateMachine.h.


Member Typedef Documentation

typedef bsc::transition<Fail,Failed> stor::Normal::FT

Definition at line 202 of file StateMachine.h.

typedef boost::mpl::list<FT> stor::Normal::reactions

Definition at line 203 of file StateMachine.h.


Constructor & Destructor Documentation

Normal::Normal ( my_context  c)

Definition at line 18 of file Normal.cc.

References stor::Operations::safeEntryAction().

                            : my_base(c)
{
  safeEntryAction();
}
Normal::~Normal ( ) [virtual]

Definition at line 29 of file Normal.cc.

References stor::Operations::safeExitAction().


Member Function Documentation

void Normal::do_entryActionWork ( ) [private, virtual]

Implements stor::Operations.

Definition at line 12 of file Normal.cc.

{
  TransitionRecord tr( stateName(), true );
  outermost_context().updateHistory( tr );
}
void Normal::do_exitActionWork ( ) [private, virtual]

Implements stor::Operations.

Definition at line 23 of file Normal.cc.

References stor::Operations::stateName().

{
  TransitionRecord tr( stateName(), false );
  outermost_context().updateHistory( tr );
}
void Normal::do_moveToFailedState ( xcept::Exception exception) const [private, virtual]

Implements stor::Operations.

Definition at line 39 of file Normal.cc.

{
  outermost_context().getSharedResources()->moveToFailedState( exception );
}
string Normal::do_stateName ( ) const [private, virtual]

Implements stor::Operations.

Definition at line 34 of file Normal.cc.

{
  return std::string( "Normal" );
}