Generic hardware access library
|
00001 #include "VMEConfigurationSpaceAddressReaderTester.hh" 00002 00003 std::string HAL::VMEConfigurationSpaceAddressReaderTester::getName() const { 00004 return "VMEConfigurationSpaceAddressReaderTester"; 00005 } 00006 00007 std::string HAL::VMEConfigurationSpaceAddressReaderTester::getDescription() const { 00008 return "Just reads in a VMETable with the configuration space items."; 00009 } 00010 00011 bool HAL::VMEConfigurationSpaceAddressReaderTester::execute() { 00012 00013 bool result = true; 00014 try { 00015 HAL::VMEConfigurationSpaceAddressReader reader; 00016 HAL::VMEAddressTable table("VME Configuration Space", reader); 00017 table.print(); 00018 } catch( HAL::HardwareAccessException& e ) { 00019 std::cout << "Unexpected exception: " << std::endl; 00020 std::cout << e.what() << std::endl; 00021 result = false; 00022 } 00023 return result; 00024 }