QApolloDb.hh Go to the documentation of this file. 00001
00002 #ifndef _QAPOLLO_DB_HH_
00003 #define _QAPOLLO_DB_HH_
00004
00005 #include <string>
00006
00007 #include "QCuore.hh"
00008 #include "QApolloDbDefs.hh "
00009 #include "QApolloDbBase.hh "
00010 #include "QApolloDbCache.hh "
00011
00012
00023 class QApolloDb
00024 {
00025 public :
00026
00027 virtual ~QApolloDb ();
00028
00029 protected :
00030
00034 QApolloDb ();
00035
00036 public :
00037
00039 bool Reset ()
00040 { return QApolloDbBase::Get ().Reset (); }
00041
00042
00046 const std::map<unsigned int,std::string>& CrateMap () const
00047 { return QApolloDbBase::Get ().CrateMap (); }
00048
00049
00057 int GetListOfChannels (std::vector<unsigned int>& chList,
00058 unsigned int profileId = 0)
00059 { return QApolloDbBase::Get ().GetListOfChannels (chList,profileId); }
00060
00061
00069 unsigned int GetMapping (std::map<unsigned int,QDaqChannel>& cMap)
00070 { return QApolloDbBase::Get ().GetMapping (cMap); }
00071
00080 unsigned int GetActiveChannels (std::map<unsigned int,QDaqChannel>& cMap,
00081 QDaqChannel::SettingsType_t what)
00082 { return QApolloDbBase::Get ().GetActiveChannels (cMap,what); }
00083
00084
00093 int GetBoards (unsigned int crateId,
00094 std::map<unsigned int,std::string>& boards )
00095 { return QApolloDbBase::Get ().GetBoards (crateId,boards); }
00096
00097
00111 int GetActiveChannels (unsigned int crateId,
00112 unsigned int slot,
00113 QDaqChannel::SettingsType_t what,
00114 std::vector<QDaqChannel>& v )
00115 { return QApolloDbBase::Get ().GetActiveChannels (crateId,slot,what,v); }
00116
00117
00130 void GetListOfTriggers (unsigned int lg, std::vector<std::string>& trgList)
00131 { return QApolloDbBase::Get ().GetListOfTriggers (lg,trgList); }
00132
00133
00144 const QVdt& GetTrgParameter (unsigned int trgIndex,
00145 const std::string& par_name,
00146 unsigned int lg=0)
00147 { return QApolloDbBase::Get ().GetTrgParameter (trgIndex,par_name,lg); }
00148
00149
00158 const std::map<std::string,QVdt>& GetTrgParameters (unsigned int trgIndex,
00159 unsigned int lg)
00160 { return QApolloDbBase::Get ().GetTrgParameters (trgIndex,lg); }
00161
00162
00163
00169 bool Dump (unsigned int crateId, bool dump)
00170 { return QApolloDbBase::Get ().Dump (crateId,dump); }
00171
00172
00176 virtual inline unsigned int GetCurrentRunNumber () const
00177 { return QApolloDbBase::Get ().GetCurrentRunNumber (); }
00178
00179
00183 inline unsigned int GetCurrentProfile () const
00184 { return QApolloDbBase::Get ().GetCurrentProfile (); }
00185
00186
00190 QDbDetector::RunType GetCurrentRunType () const
00191 { return QApolloDbBase::Get ().GetCurrentRunType (); }
00192
00193
00210 void GetSettingsBaskets (int howMany,
00211 std::map<std::string,std::vector<QVdt> >& basketsMap)
00212 { return QApolloDbBase::Get ().GetSettingsBaskets (howMany,basketsMap); }
00213
00214
00221 unsigned int GetSettingsBasketIds (std::vector<int>& baskets)
00222 { return QApolloDbBase::Get ().GetSettingsBasketIds (baskets); }
00223
00233 unsigned int GetSettingsBasket (unsigned int id ,std::string& comment)
00234 { return QApolloDbBase::Get ().GetSettingsBasket (id ,comment); }
00235
00236
00242 unsigned int GetDefaultSettingsBasket ()
00243 { return QApolloDbBase::Get ().GetDefaultSettingsBasket (); }
00244
00258 void GetRunTypes (std::map<unsigned int, std::string>& runTypes)
00259 { return QApolloDbBase::Get ().GetRunTypes (runTypes); }
00260
00265 unsigned int GetPulserPeriod ()
00266 { return QApolloDbBase::Get ().GetPulserPeriod (); }
00271 void GetRuns (std::vector<int>& runs)
00272 { return QApolloDbBase::Get ().GetRuns (runs); }
00273
00279 unsigned int GetLastRun ()
00280 {return QApolloDbBase::Get ().GetLastRun ();}
00281
00282
00288 bool GetStartDateOfRun (unsigned int runNumber, std::string& startDate)
00289 { return QApolloDbBase::Get ().GetStartDateOfRun (runNumber, startDate); }
00290
00294 bool BasketHasPulsers (unsigned int basket)
00295 { return QApolloDbBase::Get ().BasketHasPulsers (basket); }
00296
00301 bool GetPasswordHash (const std::string& user, std::string& hash)
00302 { return QApolloDbBase::Get ().GetPasswordHash (user, hash); }
00303
00308 QApolloUserLevel GetUserLevel (const std::string& user)
00309 { return QApolloDbBase::Get ().GetUserLevel (user); }
00310
00315 void GetListOfUsers (std::set<std::string>& users,
00316 QApolloUserLevel minLevel,
00317 QApolloUserLevel maxLevel)
00318 { return QApolloDbBase::Get ().GetListOfUsers (users, minLevel, maxLevel); }
00319
00320 };
00321
00322 #endif // _QAPOLLO_DB_HH_
In questo sito non sono utilizzati cookie per la profilazione degli utenti. Utilizza cookie di sessione, necessari per il corretto funzionamento dello stesso e per gestire l'autenticazione ai servizi on-line, alla intranet e alle aree riservate...
leggi tutto Più info OK