autoConfig.h

00001 
00002 #ifndef SCT_SCTAPI_AUTOCONFIG_H
00003 #define SCT_SCTAPI_AUTOCONFIG_H
00004 
00005 #include <list>
00006 
00007 #include "SctApi.h"
00008 
00009 namespace SctApi {
00010   namespace AutoConf {
00011 
00012     struct AutoResult {
00013       unsigned long partition;
00014       unsigned long crate;
00015       unsigned long rod;
00016       unsigned long tx;
00017       unsigned long rx;
00018 
00019       AutoResult(unsigned long _partition, unsigned long _crate, unsigned long _rod, 
00020                  unsigned long _tx, unsigned long _rx) : partition(_partition), crate(_crate), rod(_rod), 
00021            tx(_tx), rx(_rx) {}
00022     };
00023 
00024 class AutoConfigurer {
00025   SctApi::SctApi &api;
00026 
00027   std::list<AutoResult> results;
00028  public:
00029   AutoConfigurer(SctApi::SctApi &a) : api(a) {}
00030 
00031   void run();
00032 
00033   std::list<AutoResult> getResults();
00034 };
00035 
00036   }
00037 }
00038 
00039 #endif
00040 

Generated on Mon Feb 6 14:01:17 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6