Generic hardware access library
/home/cschwick/hal/generic/include/hal/AddCommand.hh
Go to the documentation of this file.
00001 #ifndef __ResetBitCommand
00002 #define __ResetBitCommand
00003 
00004 #include <string>
00005 #include "hal/SequencerCommand.hh"
00006 #include "hal/CommandSequence.hh"
00007 #include "hal/HardwareDeviceInterface.hh"
00008 
00009 namespace HAL {
00010 
00033 class AddCommand : public SequencerCommand {
00034 public:
00035   AddCommand( std::string variable,
00036               CommandSequence& sequence )
00037     throw (SequencerSyntaxError) ;
00038 
00039   virtual ~AddCommand() {};
00040 
00041   void excecute( const HardwareDeviceInterface& device ) const
00042     throw();
00043 
00044   void setOp( long constant );
00045 
00046   void setOpPointer( long* opPtr );
00047 
00048 private:
00049   long constant;
00050   long* opPtr;
00051   CommandSequence& sequence;
00052   uint32_t* variablePointer;
00053 };
00054 
00055 } /* namespace HAL */
00056 
00057 #endif /* __AddCommand */
00058