Generic hardware access library
|
00001 #include "VME64xAddressTableASCIIReaderTester.hh" 00002 #include <sstream> 00003 00004 std::string HAL::VME64xAddressTableASCIIReaderTester::getDescription() const { 00005 std::stringstream text; 00006 text << "Tests the HAL::VME64xAddressTableASCIIReader." 00007 << std::ends; 00008 return text.str(); 00009 } 00010 00011 bool HAL::VME64xAddressTableASCIIReaderTester::execute() { 00012 try { 00013 HAL::VMEAddressTableASCIIReader reader( VME64xASCIIADDRESSTABLE ); 00014 HAL::VMEAddressTable table( "VME64xASCIIADDRESSTABLE", reader); 00015 00016 // display table: 00017 std::cout << "\n\n\n\n"; 00018 table.print(); 00019 std::cout << "\n"; 00020 } catch (HAL::HardwareAccessException& e) { 00021 std::cout << "!!! ERROR !!! UNEXPECTED EXCETPION !!!" << std::endl; 00022 std::cout << e.what() << std::endl; 00023 return false; 00024 } 00025 // all ok if arrived here 00026 return true; 00027 }