Generic hardware access library
|
SequencerCommand to define a new Goto. More...
#include <GotoCommand.hh>
Public Member Functions | |
GotoCommand (std::string labelName, std::string condition, CommandSequence &sequence) throw (SequencerSyntaxError) | |
virtual | ~GotoCommand () |
void | setOp1 (uint32_t op1) |
Used by the GotoFactory. | |
void | setOp2 (uint32_t op2) |
Used by the GotoFactory. | |
void | setOp1Pointer (uint32_t *op1Ptr) |
Used by the GotoFactory. | |
void | setOp2Pointer (uint32_t *op2Ptr) |
Used by the GotoFactory. | |
void | excecute (const HardwareDeviceInterface &device) const throw ( SequencerSyntaxError ) |
This routine is common to all Sequencer commands. | |
Private Attributes | |
std::string | labelName |
std::string | condition |
CommandSequence & | sequence |
uint32_t | op1 |
uint32_t | op2 |
uint32_t * | op1Ptr |
uint32_t * | op2Ptr |
SequencerCommand to define a new Goto.
The syntax is "goto {labelName} op1 cond op2".
The jump is excecuted if the condition "op1 cond op2" is satisfied. Possible conditions are: "< > == <= >= !=".
Definition at line 30 of file GotoCommand.hh.
HAL::GotoCommand::GotoCommand | ( | std::string | labelName, |
std::string | condition, | ||
HAL::CommandSequence & | sequence | ||
) | throw (SequencerSyntaxError) |
Definition at line 4 of file GotoCommand.cc.
virtual HAL::GotoCommand::~GotoCommand | ( | ) | [inline, virtual] |
Definition at line 37 of file GotoCommand.hh.
void HAL::GotoCommand::excecute | ( | const HardwareDeviceInterface & | device | ) | const throw ( SequencerSyntaxError ) [virtual] |
This routine is common to all Sequencer commands.
It does what it pretends to do.
Implements HAL::SequencerCommand.
Definition at line 41 of file GotoCommand.cc.
void HAL::GotoCommand::setOp1 | ( | uint32_t | op1 | ) |
Used by the GotoFactory.
Definition at line 25 of file GotoCommand.cc.
void HAL::GotoCommand::setOp1Pointer | ( | uint32_t * | op1Ptr | ) |
Used by the GotoFactory.
Definition at line 33 of file GotoCommand.cc.
void HAL::GotoCommand::setOp2 | ( | uint32_t | op2 | ) |
Used by the GotoFactory.
Definition at line 29 of file GotoCommand.cc.
void HAL::GotoCommand::setOp2Pointer | ( | uint32_t * | op2Ptr | ) |
Used by the GotoFactory.
Definition at line 37 of file GotoCommand.cc.
std::string HAL::GotoCommand::condition [private] |
Definition at line 64 of file GotoCommand.hh.
std::string HAL::GotoCommand::labelName [private] |
Definition at line 63 of file GotoCommand.hh.
uint32_t HAL::GotoCommand::op1 [private] |
Definition at line 66 of file GotoCommand.hh.
uint32_t* HAL::GotoCommand::op1Ptr [private] |
Definition at line 67 of file GotoCommand.hh.
uint32_t HAL::GotoCommand::op2 [private] |
Definition at line 66 of file GotoCommand.hh.
uint32_t* HAL::GotoCommand::op2Ptr [private] |
Definition at line 68 of file GotoCommand.hh.
CommandSequence& HAL::GotoCommand::sequence [private] |
Definition at line 65 of file GotoCommand.hh.