CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
smproxy::Configuring Class Reference

#include <States.h>

Inheritance diagram for smproxy::Configuring:
smproxy::State< Configuring, AllOk > smproxy::StateName

Public Types

typedef boost::mpl::list
< boost::statechart::transition
< ConfiguringDone, Ready > > 
reactions
 

Public Member Functions

void activity ()
 
 Configuring (my_context c)
 
virtual void entryAction ()
 
virtual void exitAction ()
 
virtual ~Configuring ()
 
- Public Member Functions inherited from smproxy::State< Configuring, AllOk >
std::string stateName () const
 

Private Attributes

boost::scoped_ptr< boost::thread > configuringThread_
 

Additional Inherited Members

- Protected Types inherited from smproxy::State< Configuring, AllOk >
typedef
boost::statechart::state
< Configuring, AllOk,
boost::mpl::list
<>, boost::statechart::has_no_history > 
boost_state
 
typedef State my_state
 
- Protected Member Functions inherited from smproxy::State< Configuring, AllOk >
void safeEntryAction ()
 
void safeExitAction ()
 
 State (const std::string stateName, typename boost_state::my_context &c)
 
virtual ~State ()
 
- Protected Attributes inherited from smproxy::State< Configuring, AllOk >
const std::string stateName_
 

Detailed Description

The Configuring state of outer-state AllOk.

Definition at line 235 of file States.h.

Member Typedef Documentation

typedef boost::mpl::list< boost::statechart::transition<ConfiguringDone,Ready> > smproxy::Configuring::reactions

Definition at line 242 of file States.h.

Constructor & Destructor Documentation

smproxy::Configuring::Configuring ( my_context  c)
inline

Definition at line 244 of file States.h.

References smproxy::State< Configuring, AllOk >::safeEntryAction().

244  : my_state("Configuring", c)
245  { safeEntryAction(); }
virtual smproxy::Configuring::~Configuring ( )
inlinevirtual

Member Function Documentation

void smproxy::Configuring::activity ( )

Definition at line 207 of file StateMachine.cc.

Referenced by entryAction().

208  {
209  outermost_context_type& stateMachine = outermost_context();
210  stateMachine.updateConfiguration();
211  boost::this_thread::interruption_point();
212  stateMachine.setQueueSizes();
213  boost::this_thread::interruption_point();
214  stateMachine.processEvent( ConfiguringDone() );
215  }
void smproxy::Configuring::entryAction ( )
virtual

Reimplemented from smproxy::State< Configuring, AllOk >.

Definition at line 199 of file StateMachine.cc.

References activity(), and configuringThread_.

200  {
201  configuringThread_.reset(
202  new boost::thread( boost::bind( &Configuring::activity, this) )
203  );
204  }
boost::scoped_ptr< boost::thread > configuringThread_
Definition: States.h:254
void smproxy::Configuring::exitAction ( )
virtual

Reimplemented from smproxy::State< Configuring, AllOk >.

Definition at line 218 of file StateMachine.cc.

References configuringThread_.

219  {
220  configuringThread_->interrupt();
221  }
boost::scoped_ptr< boost::thread > configuringThread_
Definition: States.h:254

Member Data Documentation

boost::scoped_ptr<boost::thread> smproxy::Configuring::configuringThread_
private

Definition at line 254 of file States.h.

Referenced by entryAction(), and exitAction().