Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
bool enter (const CHSM::event &event, CHSM::state *from)
 Enter this state.
 

Detailed Description

DAQ state class.

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

  • first argument is the state entered;
  • second argument is the event that caused the transition;

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: