Generic hardware access library
|
Adding a constant to a varible. More...
#include <AddCommand.hh>
Public Member Functions | |
AddCommand (std::string variable, CommandSequence &sequence) throw (SequencerSyntaxError) | |
virtual | ~AddCommand () |
void | excecute (const HardwareDeviceInterface &device) const throw () |
This routine is common to all Sequencer commands. | |
void | setOp (long constant) |
void | setOpPointer (long *opPtr) |
Private Attributes | |
long | constant |
long * | opPtr |
CommandSequence & | sequence |
uint32_t * | variablePointer |
Adding a constant to a varible.
Syntax in the Sequence: Add $varname value. Value can be a constant or a variable itself.
Examples:
add $myvar 0x5
add $myvar $yourvar
Definition at line 33 of file AddCommand.hh.
HAL::AddCommand::AddCommand | ( | std::string | variable, |
HAL::CommandSequence & | sequence | ||
) | throw (SequencerSyntaxError) |
Definition at line 4 of file AddCommand.cc.
virtual HAL::AddCommand::~AddCommand | ( | ) | [inline, virtual] |
Definition at line 39 of file AddCommand.hh.
void HAL::AddCommand::excecute | ( | const HardwareDeviceInterface & | device | ) | const throw () [virtual] |
This routine is common to all Sequencer commands.
It does what it pretends to do.
Implements HAL::SequencerCommand.
Definition at line 21 of file AddCommand.cc.
void HAL::AddCommand::setOp | ( | long | constant | ) |
Definition at line 13 of file AddCommand.cc.
void HAL::AddCommand::setOpPointer | ( | long * | opPtr | ) |
Definition at line 17 of file AddCommand.cc.
long HAL::AddCommand::constant [private] |
Definition at line 49 of file AddCommand.hh.
long* HAL::AddCommand::opPtr [private] |
Definition at line 50 of file AddCommand.hh.
CommandSequence& HAL::AddCommand::sequence [private] |
Definition at line 51 of file AddCommand.hh.
uint32_t* HAL::AddCommand::variablePointer [private] |
Definition at line 52 of file AddCommand.hh.