QDaqStateCommand Class Reference
[NetworkingApollo]

Inheritance diagram for QDaqStateCommand:

QCommand

List of all members.


Detailed Description

network command handler for operations that change the status of the Daq sytem

Author:
Sergio Di Domizio

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

Member Enumeration Documentation

possible daq state change commands

Enumerator:
QPauseCmd  not implemented
QResumeCmd  not implemented


Member Function Documentation

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().


Member Data Documentation

std::string QDaqStateCommand::fCommand [private]

command name

Referenced by QDaqStateCommand().

command code

Referenced by CheckCommandState(), CheckParams(), Execute(), and QDaqStateCommand().

used in start command

Referenced by CheckParams(), CheckStartParams(), and Execute().

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().


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

Generated on Tue Nov 16 10:50:05 2010 for CUORE Software by  doxygen 1.5.6