Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TSQLImporter.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TSQLImporter.h
1 // $Id: TSQLImporter.h,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
2 
3 #ifndef RDBC_TSQLImporter_h
4 #define RDBC_TSQLImporter_h
5 
6 //
7 // TSQLImporter: class used for data import
8 //
9 
10 #ifndef ROOT_TQObject
11 #include <TQObject.h>
12 #endif
13 
14 class TSQLImportClient;
15 class TSQLConnection;
16 class TSQLException;
18 class TSQLImporter: public TQObject
19 {
20 protected:
21  TSQLConnection* fConnection; // where to import data (server)
22  TSQLImportClient* fClient; // what to import (client)
23 
24 private:
25  void LoadCatalog(const TString& url);
26  void LoadTable(const TString& url);
27  Int_t fStatus; // status of import procedure, fStatus < 400 status is OK
28 
29 public:
30  TSQLImporter();
31  TSQLImporter(const TString& url,TSQLConnection* con) { Import(url,con); }
32  virtual ~TSQLImporter();
33  virtual Int_t Import(const TString& url,TSQLConnection* con);
34  virtual Bool_t IsValid() const;
35  void Throw( TSQLException* e ) { Emit("Throw(TSQLException*)",(long)e); } //*SIGNAL*
36 
37 ClassDef(TSQLImporter,0)// class used for data import into database
38 };
39 
40 #endif // RDBC_TSQLImporter_h