Generic hardware access library
HAL::GotoCommand Class Reference

SequencerCommand to define a new Goto. More...

#include <GotoCommand.hh>

Inheritance diagram for HAL::GotoCommand:
HAL::SequencerCommand

List of all members.

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
CommandSequencesequence
uint32_t op1
uint32_t op2
uint32_t * op1Ptr
uint32_t * op2Ptr

Detailed Description

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: "< > == <= >= !=".

See also:
GotoFactory
Author:
Christoph Schwick
Revision:
1.1
Date:
2007/03/05 18:02:09

Definition at line 30 of file GotoCommand.hh.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

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.

Definition at line 65 of file GotoCommand.hh.


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