--- chewbacca/YodaProfiler/inc/GLTables.h 2009/01/27 11:38:12 1.5 +++ chewbacca/YodaProfiler/inc/GLTables.h 2009/12/15 10:23:28 1.9 @@ -6,6 +6,10 @@ #include #include #include +#include +#include +#include +#include #include #include #include @@ -33,15 +37,16 @@ public: // - TString mh; - TString mp; - TString mu; + TString mh; //! + TString mp; //! + TString mu; //! GL_TABLES(); GL_TABLES(TString, TString, TString); // void Set(TString, TString, TString); // - Bool_t IsConnected(TSQLServer *&); + // Bool_t IsConnected(TSQLServer *&); + Bool_t IsConnected(TSQLServer *); // void ResetCounters(); void AddQ(); @@ -58,10 +63,31 @@ // GL_TABLES *GetGLTABLES(){return this;}; // - ClassDef(GL_TABLES,2); + ClassDef(GL_TABLES,0); // 2 }; // ================================================================== +class Q2TH : public TObject { + private: + TSQLServer *dbc; + TSQLResult *pResult; + TSQLRow *Row; + TString fh; + TString fp; + TString fu; + + public: + + Q2TH(TString h="$PAM_DBHOST", TString u="$PAM_DBUSER", TString p="$PAM_DBPSW"); + ~Q2TH(){ if ( dbc ) dbc->Close(); delete dbc; }; + + TObject *Draw(TString query, Bool_t verbose = false, TString hname="q2th"); + void Open(TString h="$PAM_DBHOST", TString u="$PAM_DBUSER", TString p="$PAM_DBPSW"); + void Close(){ if ( dbc ) dbc->Close(); delete dbc; }; + + ClassDef(Q2TH,1); // 2 + +}; /** * \brief Class to store GL_RUN data