QApolloDbCache.hh

Go to the documentation of this file.
00001 
00002 #ifndef _QAPOLLODBCACHE_HH_
00003 #define _QAPOLLODBCACHE_HH_
00004 
00005 // C/C++ Includes
00006 #include <string>
00007 #include <map>
00008 #include <vector>
00009 
00010 // Apollo Includes
00011 #include "QCuore.hh"
00012 #include "QDaqChannel.hh"
00013 
00014 
00023 class QApolloDbCache
00024 {
00025 public:
00026   
00027   // dtor
00028   virtual ~QApolloDbCache();
00029   
00030 private:
00031 
00032   // ctor
00033   QApolloDbCache(); 
00034   
00039   void Dump(unsigned int crateId, bool isDump) const;
00040 
00044   const QDaqChannel& DaqChan(unsigned int Lg) const;
00045 
00052   int GetBoards(unsigned int                        crate, 
00053                 std::map<unsigned int,std::string>& boards) const;
00054 
00065   unsigned int GetActiveChannels(unsigned int              crate,
00066                                    unsigned int              slot,
00067                                    QDaqChannel::SettingsType_t what,
00068                                    std::vector<QDaqChannel>&   chList) const;
00069 
00075   unsigned int GetMapping(std::map<unsigned int, QDaqChannel>& cMap) const;
00076 
00083   unsigned int GetActiveChannels(std::map<unsigned int,QDaqChannel>& cMap,
00084                                    QDaqChannel::SettingsType_t what) const;
00085   
00089   inline void Clear() {fChannels.clear();}
00090 
00095   void FillDefaultTriggers(unsigned int crateId);
00096 
00100   std::map<unsigned int, QDaqChannel> fChannels;
00101 
00102   friend class QApolloDbBase;
00103 };
00104                 
00105 #endif // _QAPOLLODBCACHE_HH_

Generated on Tue Nov 16 10:49:56 2010 for CUORE Software by  doxygen 1.5.6
INFN Genova privacy policy