00001 00002 #ifndef _QAPOLLO_DB_SERVER_HH_ 00003 #define _QAPOLLO_DB_SERVER_HH_ 00004 00005 #include <string> 00006 00007 #include "QCuore.hh" 00008 #include "QApolloDb.hh" 00009 00017 class QApolloDbServer : public QApolloDb 00018 { 00019 public: 00020 00021 00022 virtual ~QApolloDbServer(); 00023 00024 private: 00025 00029 QApolloDbServer(); 00030 00032 bool Reset(unsigned int settingsBasket, unsigned int runNumber) 00033 { return QApolloDbBase::Get().Reset(settingsBasket, runNumber); } 00034 00035 00037 void UpdateStart(unsigned int shifterSet) 00038 { return QApolloDbBase::Get().UpdateStart(shifterSet); } 00039 00041 void SanitizeRunsTable() 00042 { return QApolloDbBase::Get().SanitizeRunsTable(); } 00043 00052 void UndoInsertRun() 00053 { return QApolloDbBase::Get().UndoInsertRun(); } 00054 00056 void UpdateStop(StopStatus_t stopStatus, unsigned int shifterSet, 00057 unsigned int nFiles) 00058 { return QApolloDbBase::Get().UpdateStop(stopStatus,shifterSet,nFiles); } 00059 00061 void InsertStartComments(const std::string comments) 00062 { return QApolloDbBase::Get().InsertStartComments(comments); } 00063 00065 void InsertStopComments(const std::string comments) 00066 { return QApolloDbBase::Get().InsertStopComments(comments); } 00067 00068 friend class QDaqServer; 00069 }; 00070 00071 #endif // _QAPOLLO_DB_SERVER_HH_