Jpp  16.0.3
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
JDAQCHSM::JDAQState Class Reference

DAQ state class. More...

#include <JDAQCHSM.hh>

Inheritance diagram for JDAQCHSM::JDAQState:

Public Member Functions

 JDAQState (CHSM_STATE_ARGS)
 Default CHSM constructor. More...
 
bool enter (const CHSM::event &event, CHSM::state *from)
 Enter this state. More...
 
 JDAQState (CHSM_STATE_ARGS)
 Default CHSM constructor. More...
 
bool enter (const CHSM::event &event, CHSM::state *from)
 Enter this state. More...
 

Detailed Description

DAQ state class.

The member method enter() makes a call to the virtual method JDAQCHSM::enterState(...), where:

This method should be overwritten by the run control client to reply to the run control.

Definition at line 26 of file JDAQCHSM.chsm.

Constructor & Destructor Documentation

JDAQCHSM::JDAQState::JDAQState ( CHSM_STATE_ARGS  )
inline

Default CHSM constructor.

Definition at line 33 of file JDAQCHSM.chsm.

33  :
34  CHSM::state(CHSM_STATE_INIT)
35  {}
JDAQCHSM::JDAQState::JDAQState ( CHSM_STATE_ARGS  )
inline

Default CHSM constructor.

Definition at line 44 of file JDAQCHSM.hh.

44  :
45  CHSM::state(CHSM_STATE_INIT)
46  {}

Member Function Documentation

bool JDAQCHSM::JDAQState::enter ( const CHSM::event &  event,
CHSM::state *  from 
)
inline

Enter this state.

Parameters
eventevent that triggered transition
frompointer to state from where transition started
Returns
true if all OK; else false

Definition at line 45 of file JDAQCHSM.chsm.

46  {
47  try {
48 
49  dynamic_cast<JDAQCHSM&>(this->chsm()).enterState(*this, event);
50 
51  return CHSM::state::enter(event, from);
52  }
53  catch(const std::exception& error) {
54  return false;
55  }
56  }
virtual void enterState(const CHSM::state &state, const CHSM::event &event)=0
Action when entering state.
DAQ state machine interface.
Definition: JDAQCHSM.chsm:12
bool JDAQCHSM::JDAQState::enter ( const CHSM::event &  event,
CHSM::state *  from 
)
inline

Enter this state.

Parameters
eventevent that triggered transition
frompointer to state from where transition started
Returns
true if all OK; else false

Definition at line 56 of file JDAQCHSM.hh.

57  {
58  try {
59 
60  dynamic_cast<JDAQCHSM&>(this->chsm()).enterState(*this, event);
61 
62  return CHSM::state::enter(event, from);
63  }
64  catch(const std::exception& error) {
65  return false;
66  }
67  }
virtual void enterState(const CHSM::state &state, const CHSM::event &event)=0
Action when entering state.
DAQ state machine interface.
Definition: JDAQCHSM.chsm:12

The documentation for this class was generated from the following files: