Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DbiAsciiDbImporter.h

Go to the documentation of this file.
00001 #ifndef DBIASCIIDBIMPORTER_H
00002 #define DBIASCIIDBIMPORTER_H
00003 
00028 #include <list>
00029 #include <string>
00030 
00031 #include "DatabaseInterface/DbiExceptionLog.h"
00032 
00033 class DbiAsciiTablePreparer;
00034 class TSQLServer;
00035 class TString;
00036 
00037 
00038 class DbiAsciiDbImporter
00039 {
00040 public:
00041    DbiAsciiDbImporter();
00042    DbiAsciiDbImporter(const TString& url,TSQLServer* server);
00043    virtual ~DbiAsciiDbImporter();   
00044 
00045    const DbiExceptionLog& GetExceptionLog() const { return fExceptionLog; }
00046    Int_t  Import(const TString& url,TSQLServer* server);
00047    const std::list<std::string>& GetImportedTableNames() const { return fImportedTableNames; }
00048    Bool_t IsValid() const;
00049 
00050 
00051 private:
00052    void  LoadCatalog(const TString& url);
00053    void  LoadTable(const TString& url);
00054 
00055 
00057    Int_t fStatus;
00058 
00060    DbiExceptionLog fExceptionLog;
00061 
00063      std::list<std::string> fImportedTableNames;
00064 
00065 
00067    TSQLServer* fServer;
00068  
00070    DbiAsciiTablePreparer* fTablePreparer;    
00071 
00072 
00073 ClassDef(DbiAsciiDbImporter,0)// class used to create a temporary ASCII database
00074 };
00075 
00076 
00077 #endif // DBIASCIIDBIMPORTER_H

Generated on Mon Feb 15 11:06:34 2010 for loon by  doxygen 1.3.9.1