Generic hardware access library
/home/cschwick/hal/generic/include/hal/CheckCommand.hh
Go to the documentation of this file.
00001 #ifndef __CheckCommand
00002 #define __CheckCommand
00003 
00004 #include <string>
00005 #include <list>
00006 
00007 #include "hal/SequencerCommand.hh"
00008 #include "hal/CommandSequence.hh"
00009 #include "hal/HardwareDeviceInterface.hh"
00010 #include "hal/BusAdapterException.hh"
00011 
00012 namespace HAL {
00013 
00042 class CheckCommand : public SequencerCommand {
00043 public:
00049   CheckCommand( std::string item,
00050                CommandSequence& sequence );
00051 
00052   virtual ~CheckCommand() {};
00053 
00054   void excecute( const HardwareDeviceInterface& device ) const
00055     throw( IllegalOperationException,
00056            BusAdapterException );
00057 
00061   void setOffsetPointer( uint32_t* offsetPtr );
00062         
00066   void setExpectationPointer( uint32_t* dataPtr );
00067      
00071   void setExpectation( uint32_t offset );
00072 
00076   void setOffset( uint32_t offset );
00077 
00081   void setFailMessage( std::list<std::string>  failMessageList );
00082 
00083 private:
00084   CommandSequence& sequence;
00085   std::string item;
00086   uint32_t* expectationPtr;
00087   uint32_t  expectation;
00088   uint32_t* offsetPtr;
00089   uint32_t  offset;
00090   std::list< std::string > failMessageList;
00091 };
00092 
00093 } /* namespace HAL */
00094 
00095 #endif /* __CheckCommand */
00096