Generic hardware access library
HAL::AddCommand Class Reference

Adding a constant to a varible. More...

#include <AddCommand.hh>

Inheritance diagram for HAL::AddCommand:

List of all members.

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
uint32_t * variablePointer

Detailed Description

Adding a constant to a varible.

Syntax in the Sequence: Add $varname value. Value can be a constant or a variable itself.


add $myvar 0x5

add $myvar $yourvar

See also:
Christoph Schwick
2007/03/05 18:02:09

Definition at line 33 of file AddCommand.hh.

Constructor & Destructor Documentation

HAL::AddCommand::AddCommand ( std::string  variable,
HAL::CommandSequence sequence 
) throw (SequencerSyntaxError)

Definition at line 4 of file

virtual HAL::AddCommand::~AddCommand ( ) [inline, virtual]

Definition at line 39 of file AddCommand.hh.

Member Function Documentation

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

void HAL::AddCommand::setOp ( long  constant)

Definition at line 13 of file

void HAL::AddCommand::setOpPointer ( long *  opPtr)

Definition at line 17 of file

Member Data Documentation

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.

Definition at line 51 of file AddCommand.hh.

uint32_t* HAL::AddCommand::variablePointer [private]

Definition at line 52 of file AddCommand.hh.

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