--- chewbacca/YodaProfiler/inc/GLTables.h 2009/01/27 11:38:12 1.5 +++ chewbacca/YodaProfiler/inc/GLTables.h 2009/12/14 16:53:41 1.7 @@ -6,6 +6,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -33,15 +36,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 +62,28 @@ // 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"); + + TObject *Draw(TString query, Bool_t verbose = false, TString hname="q2th"); + + ClassDef(Q2TH,1); // 2 + +}; /** * \brief Class to store GL_RUN data