/search.css" rel="stylesheet" type="text/css"/> /search.js">
00001 #ifndef DBIASCIITABLEPREPARER_H 00002 #define DBIASCIITABLEPREPARER_H 00003 00030 #include "TUrl.h" 00031 #include "TString.h" 00032 00033 #include "DatabaseInterface/DbiExceptionLog.h" 00034 00035 class DbiAsciiTablePreparer 00036 { 00037 00038 public: 00039 DbiAsciiTablePreparer(const TString& url); 00040 virtual ~DbiAsciiTablePreparer(); 00041 00042 const DbiExceptionLog& GetExceptionLog() const { return fExceptionLog; } 00043 TString GetLocal() const { return fLocalFile.IsNull() ? 0 : "LOCAL"; } 00044 TString GetTableName() const { return fTableName; } 00045 TString GetColumns() const { return fColumns; } 00046 TString GetLocalFile() const { return fLocalFile; } 00047 Int_t GetSkipLines() const { return fSkipLines; } 00048 Int_t GetStatus() const { return fStatus; } 00049 Bool_t IsValid() const { return ((fStatus >= 200)&&(fStatus < 300)); } 00050 00051 00052 private: 00053 00054 virtual Int_t Init(); 00055 virtual void GET(const TString& url); 00056 virtual void Clean(); 00057 00058 00060 Bool_t fMustDeleteLocalFile; 00061 00064 DbiExceptionLog fExceptionLog; 00065 00067 TUrl* fUrl; 00068 00070 TString fLocalFile; 00071 00073 TString fTableName; 00074 00076 TString fColumns; 00077 00079 Int_t fStatus; 00080 00082 Int_t fSkipLines; 00083 00084 // Removed: ClassDef(DbiAsciiTablePreparer,0)// Class used to prepare a table for a temporary ASCII database 00085 }; 00086 00087 // from /usr/include/apache/httpd.h 00088 #ifndef APACHE_HTTPD_H 00089 #define HTTP_OK 200 00090 #define HTTP_BAD_REQUEST 400 00091 #define HTTP_FORBIDDEN 403 00092 #define HTTP_NOT_FOUND 404 00093 #define HTTP_NOT_ACCEPTABLE 406 00094 #endif //APACHE_HTTPD_H 00095 00096 00097 #endif // DBIASCIITABLEPREPARER_H