
Public Member Functions | |
| QDaqStateCommand () | |
| empty ctor | |
| QDaqStateCommand (const std::string &which) | |
| ctor with specific command | |
| virtual | ~QDaqStateCommand () |
| dtor | |
| virtual void | Execute () |
| execute command using QDaqServer | |
| virtual void | CheckParams () |
| check that all params are available and meaningful | |
Private Types | |
| enum | QDaqCommandCode { QNoCmd = 0, QStartCmd = 1, QStopCmd = 2, QPauseCmd = 4, QResumeCmd = 8 } |
| possible daq state change commands More... | |
Private Member Functions | |
| bool | CheckCommandState (QDaqCommonDefs::QDaqState daqState) const |
| check whether execution of requested command is allowed for the current daq state (e.g. cannot execute start if daq is running) | |
| void | CheckStartParams () |
| void | CheckStopParams () |
Private Attributes | |
| std::string | fCommand |
| QDaqCommandCode | fCommandCode |
| int | fSettingsBasket |
| int | fShifterSet |
| int | fRun |
| std::string | fComments |
enum QDaqStateCommand::QDaqCommandCode [private] |
| void QDaqStateCommand::CheckStartParams | ( | ) | [private] |
check params required to start a new run
References fComments, fRun, fSettingsBasket, fShifterSet, QCommand::GetInt(), QCommand::GetString(), QCommand::IsValid(), and QCommand::SetError().
Referenced by CheckParams().
| void QDaqStateCommand::CheckStopParams | ( | ) | [private] |
check params required to stop a run
References fComments, fShifterSet, QCommand::GetInt(), QCommand::GetString(), QCommand::IsValid(), and QCommand::SetError().
Referenced by CheckParams().
std::string QDaqStateCommand::fCommand [private] |
command name
Referenced by QDaqStateCommand().
command code
Referenced by CheckCommandState(), CheckParams(), Execute(), and QDaqStateCommand().
int QDaqStateCommand::fSettingsBasket [private] |
used in start command
Referenced by CheckParams(), CheckStartParams(), and Execute().
int QDaqStateCommand::fShifterSet [private] |
used for start/stop commands
Referenced by CheckParams(), CheckStartParams(), CheckStopParams(), and Execute().
int QDaqStateCommand::fRun [private] |
used in start command
Referenced by CheckParams(), CheckStartParams(), and Execute().
std::string QDaqStateCommand::fComments [private] |
used in start/stop commands
Referenced by CheckParams(), CheckStartParams(), CheckStopParams(), and Execute().
1.5.6