Generic hardware access library
/home/cschwick/hal/generic/classtester/include/ASCIIFileAddressTableContainerTester.hh
Go to the documentation of this file.
00001 #ifndef __ASCIIFileAddressTableContainerTester
00002 #define __ASCIIFileAddressTableContainerTester
00003 
00004 #include <iostream>
00005 #include "ASCIIFileAddressTableContainer.hh"
00006 #include "TesterInterface.hh"
00007 #include "ASCIIFileModuleMapper.hh"
00008 #include "IllegalValueException.hh"
00009 #include "NoSuchFileException.hh"
00010 #include "XMLProcessingException.hh"
00011 #include "VMEAddressTable.hh"
00012 
00013 using std::cout;
00014 
00015 #define VMEXMLADDRESSTABLE_1 "VMEXMLTable-1.xml"
00016 #define VME64xXMLADDRESSTABLE_1 "VME64xXMLTable-1.xml"
00017 #define PCIXMLADDRESSTABLE_1 "PCIXMLTable-1.xml"
00018 
00019 
00020 namespace HAL {
00021 
00022 class ASCIIFileAddressTableContainerTester:public HAL::TesterInterface {
00023 public:
00024 
00025   ASCIIFileAddressTableContainerTester( std::string moduleMapperFile,
00026                                         std::string addressTableContainerFilebool )
00027     throw( IllegalValueException,
00028            NoSuchFileException,
00029            XMLProcessingException,
00030            HardwareAccessException );
00031     
00032   virtual ~ASCIIFileAddressTableContainerTester() {};
00033 
00034   bool execute();
00035   std::string getName() const {
00036     return std::string("ASCIIFileAddressTableContainerTester");
00037   }
00038   std::string getDescription() const;
00039 
00040 private:
00041   ASCIIFileModuleMapper moduleMapper_;
00042   ASCIIFileAddressTableContainer addressTableContainer_;
00043 };
00044 } /* namespace HAL */
00045 
00046 #endif /* __ASCIIFileAddressTableContainerTester */
00047