Generic hardware access library
HAL::PrintCommand Class Reference

SequencerCommand to print something on the console. More...

#include <PrintCommand.hh>

Inheritance diagram for HAL::PrintCommand:
HAL::SequencerCommand

List of all members.

Public Member Functions

 PrintCommand (std::list< std::string > arguments, CommandSequence &sequence) throw (SequencerSyntaxError)
virtual ~PrintCommand ()
void excecute (const HardwareDeviceInterface &device) const throw ()
 This routine is common to all Sequencer commands.

Private Attributes

std::list< std::string > arguments
CommandSequencesequence

Detailed Description

SequencerCommand to print something on the console.

The syntax is "print {string}". Any word starting with a "$" sign is interpreted as a variable name and the value of the variable is printed. There are two special which define the print format: dec prints the following variables in decimal format (defaults) whereas hex prints them in hexadecimal format. Examples:

print My variable in hex is hex $myVar

print My variable in dec is dec $myVar

See also:
PrintFactory
Author:
Christoph Schwick
Revision:
1.1
Date:
2007/03/05 18:02:10

Definition at line 37 of file PrintCommand.hh.


Constructor & Destructor Documentation

HAL::PrintCommand::PrintCommand ( std::list< std::string >  arguments,
HAL::CommandSequence sequence 
) throw (SequencerSyntaxError)

Definition at line 6 of file PrintCommand.cc.

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

Definition at line 43 of file PrintCommand.hh.


Member Function Documentation

void HAL::PrintCommand::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 13 of file PrintCommand.cc.


Member Data Documentation

std::list<std::string> HAL::PrintCommand::arguments [private]

Definition at line 49 of file PrintCommand.hh.

Definition at line 50 of file PrintCommand.hh.


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