Jpp  19.1.0
the software that should make you happy
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...
 

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 37 of file JDAQCHSM.hh.

Constructor & Destructor Documentation

◆ JDAQState()

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

◆ enter()

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  }
DAQ state machine interface.
Definition: JDAQCHSM.hh:25
virtual void enterState(const CHSM::state &state, const CHSM::event &event)=0
Action when entering state.

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