Generic hardware access library
|
00001 #ifndef __TestMaster 00002 #define __TestMaster 00003 00004 #include <list> 00005 #include <map> 00006 #include <iostream> 00007 #include "hal/TesterInterface.hh" 00008 #include "hal/HardwareAccessException.hh" 00009 00010 namespace HAL { 00011 00033 class TestMaster { 00034 public: 00035 TestMaster( std::ostream& os = std::cout ); 00036 00040 void registerTester( TesterInterface& newTester ); 00041 00048 bool doTest() throw (HardwareAccessException); 00049 00053 void printShortReport() ; 00054 00058 void printLongReport() ; 00059 00060 private: 00061 std::ostream& os_; 00062 std::list< TesterInterface* > testerList_; 00063 std::map< TesterInterface*, bool > resultMap_; 00064 bool testDone_; 00065 }; 00066 00067 } /* namespace HAL */ 00068 00069 #endif /* __TestMaster */