Generic hardware access library
|
#include <AbstractCommandFactory.hh>
Public Member Functions | |
virtual | ~AbstractCommandFactory () |
virtual SequencerCommand * | create (std::list< std::string > &arguments, const AddressTableInterface &addressTable, CommandSequence &sequence)=0 throw (SequencerSyntaxError, NoSuchItemException) |
Create an instantiation of a specific SequencerCommand. | |
Protected Member Functions | |
uint32_t | stringToNumber (std::string numberString) throw (SequencerSyntaxError) |
A helper function to convert constant parameters. |
Definition at line 40 of file AbstractCommandFactory.hh.
virtual HAL::AbstractCommandFactory::~AbstractCommandFactory | ( | ) | [inline, virtual] |
Definition at line 44 of file AbstractCommandFactory.hh.
virtual SequencerCommand* HAL::AbstractCommandFactory::create | ( | std::list< std::string > & | arguments, |
const AddressTableInterface & | addressTable, | ||
CommandSequence & | sequence | ||
) | throw (SequencerSyntaxError, NoSuchItemException) [pure virtual] |
Create an instantiation of a specific SequencerCommand.
addressTable | might be used in the implementations of this. interface. |
sequence | is forwarded to the contructor of the command. |
Implemented in HAL::AddFactory, HAL::UnmaskedWriteFactory, HAL::WriteFactory, HAL::PollItemFactory, HAL::DefineFactory, HAL::ResetBitFactory, HAL::SetBitFactory, HAL::UnmaskedReadFactory, HAL::CheckFactory, HAL::GotoFactory, HAL::LabelFactory, HAL::PrintFactory, and HAL::ReadFactory.
uint32_t HAL::AbstractCommandFactory::stringToNumber | ( | std::string | numberString | ) | throw (SequencerSyntaxError) [protected] |
A helper function to convert constant parameters.
Often parameters are numbers which can be given in hexadecimal notation (e.g. "0xfe") or in decimal notation (e.g. "254"). This function converts the strings apropriately to a number.
Definition at line 6 of file AbstractCommandFactory.cc.