Generic hardware access library
/home/cschwick/hal/generic/include/hal/DefineCommand.hh
Go to the documentation of this file.
00001 #ifndef __DefineCommand
00002 #define __DefineCommand
00003 
00004 #include <string>
00005 
00006 #include "hal/SequencerCommand.hh"
00007 #include "hal/CommandSequence.hh"
00008 #include "hal/HardwareDeviceInterface.hh"
00009 
00010 namespace HAL {
00011 
00040 class DefineCommand : public SequencerCommand {
00041 public:
00044   DefineCommand( std::string variableName,
00045                  bool hasInitialization,
00046                  CommandSequence& sequence );
00047   
00048   virtual ~DefineCommand() {};
00049 
00053   void setInitValuePointer( uint32_t* initValPtr );
00057   void setInitValue( uint32_t initVal );
00058   void excecute( const HardwareDeviceInterface& device ) const
00059     throw();
00060 
00061 private:
00062   bool hasInitialization;
00063   uint32_t initValue;
00064   uint32_t* initValuePtr;
00065   std::string variableName;
00066   CommandSequence& sequence;
00067   uint32_t* variablePtr;
00068 };
00069 
00070 } /* namespace HAL */
00071 
00072 #endif /* __DefineCommand */