Generic hardware access library
|
SequencerCommand to print something on the console. More...
#include <PrintCommand.hh>
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 |
CommandSequence & | sequence |
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
Definition at line 37 of file PrintCommand.hh.
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.
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.
std::list<std::string> HAL::PrintCommand::arguments [private] |
Definition at line 49 of file PrintCommand.hh.
CommandSequence& HAL::PrintCommand::sequence [private] |
Definition at line 50 of file PrintCommand.hh.