Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-12-18 09:24:04

0001 // $Id: TSQLImporter.h,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
0002 
0003 #ifndef RDBC_TSQLImporter_h
0004 #define RDBC_TSQLImporter_h
0005 
0006 //
0007 //  TSQLImporter: class used for data import
0008 //
0009 
0010 #ifndef ROOT_TQObject
0011 #include <TQObject.h>
0012 #endif
0013 
0014 class TSQLImportClient;
0015 class TSQLConnection;
0016 class TSQLException;
0017 /////////////////////////////////////////////////////////////////////
0018 class TSQLImporter: public TQObject
0019 {
0020 protected:
0021    TSQLConnection* fConnection;  // where to import data (server)
0022    TSQLImportClient* fClient;    // what to import (client)
0023 
0024 private:
0025    void  LoadCatalog(const TString& url);
0026    void  LoadTable(const TString& url);
0027    Int_t fStatus; // status of import procedure, fStatus < 400 status is OK
0028 
0029 public:
0030    TSQLImporter();
0031    TSQLImporter(const TString& url,TSQLConnection* con) { Import(url,con); } 
0032    virtual ~TSQLImporter();   
0033    virtual Int_t  Import(const TString& url,TSQLConnection* con);
0034    virtual Bool_t IsValid() const;
0035    void Throw( TSQLException* e ) { Emit("Throw(TSQLException*)",(long)e); } //*SIGNAL*
0036 
0037 ClassDef(TSQLImporter,0)// class used for data import into database
0038 };
0039 
0040 #endif // RDBC_TSQLImporter_h