Generic hardware access library
/home/cschwick/hal/generic/include/hal/ReadCommand.hh
Go to the documentation of this file.
00001 #ifndef __ReadCommand
00002 #define __ReadCommand
00003 
00004 #include <string>
00005 
00006 #include "hal/SequencerCommand.hh"
00007 #include "hal/CommandSequence.hh"
00008 #include "hal/HardwareDeviceInterface.hh"
00009 #include "hal/BusAdapterException.hh"
00010 
00011 namespace HAL {
00012 
00037 class ReadCommand : public SequencerCommand {
00038 public:
00044   ReadCommand( std::string item,
00045                CommandSequence& sequence );
00046 
00047   virtual ~ReadCommand() {};
00048 
00049   void excecute( const HardwareDeviceInterface& device ) const
00050     throw( IllegalOperationException,
00051            BusAdapterException,
00052            MaskBoundaryException);
00053 
00057   void setOffsetPointer( uint32_t* offsetPtr );
00058         
00062   void setResultPointer( uint32_t* dataPtr );
00063         
00067   void setOffset( uint32_t offset );
00068 
00069 private:
00070   CommandSequence& sequence;
00071   std::string item;
00072   uint32_t* resultPtr;
00073   uint32_t* offsetPtr;
00074   uint32_t  offset;
00075 };
00076 
00077 } /* namespace HAL */
00078 
00079 #endif /* __ReadCommand */