Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

DummyHardware.h

00001 #ifndef SCTTEST_DUMMYHARDWARE_H
00002 #define SCTTEST_DUMMYHARDWARE_H
00003 
00004 #include <map>
00005 #include <vector>
00006 #include "SctApi/SctApi.h"
00007 #include "CommonWithDsp/sctStructure.h"
00008 
00009 using std::map;
00010 using std::vector;
00011 
00012 namespace SctTest {
00013 
00019 class DummyHardware {
00020 public:
00024     static DummyHardware& instance();
00025     
00029     const ABCDModule& getConfig(UINT32 mid, SctApi::BankType type);
00030     
00035     void setConfig(UINT32 mid, SctApi::BankType type, const ABCDModule& config);
00036     
00040     const ABCDModule& getOriginalConfig(UINT32 mid);
00041     
00045     const ABCDModule& getCurrentConfig(UINT32 mid);
00046     
00050     void sendConfig(UINT32 mid, SctApi::BankType bank);
00051     
00052 private:
00053     DummyHardware();
00054     vector< map<UINT32, ABCDModule> > configs;      
00055     map<UINT32, ABCDModule> originalConfig;     
00056     map<UINT32, ABCDModule> currentConfig;      
00057 };
00058 }
00059 
00060 #endif //SCTTEST_DUMMYHARDWARE_H

Generated on Thu Jul 15 09:50:45 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5