ROOT logo
#ifndef HORAMAGNETIMPORT_H
#define HORAMAGNETIMPORT_H

using namespace std;
#include "TObject.h"
#include "TString.h"
#include <iostream>
#include <iomanip>
#include <fstream>

class HDbConn;

class HOraMagnetImport : public TObject {
private:
  HDbConn* pConn;        // pointer to the connection class
  TString fileName;      // file name (= date in format ddmmyyyy)
  TString fileDirectory; // file directory
  ifstream* fin;         // input stream
public:
  HOraMagnetImport();
  ~HOraMagnetImport();
  Bool_t open(TString, TString dbName="db-hades");
  void close();
  Bool_t check();
  void print();
  void setFileDirectory(const Char_t* s) {fileDirectory =s; }
  const Char_t* getFileDirectory() { return fileDirectory.Data(); }
  Bool_t storeData(const Char_t*);
private:
  Bool_t openFile(const Char_t* filename);
  void closeFile();
  void commit();
  void rollback();
  ClassDef(HOraMagnetImport,0) // Class to store the Magnet data in Oracle
};

#endif  /* !HORAMAGNETIMPORT_H */
 horamagnetimport.h:1
 horamagnetimport.h:2
 horamagnetimport.h:3
 horamagnetimport.h:4
 horamagnetimport.h:5
 horamagnetimport.h:6
 horamagnetimport.h:7
 horamagnetimport.h:8
 horamagnetimport.h:9
 horamagnetimport.h:10
 horamagnetimport.h:11
 horamagnetimport.h:12
 horamagnetimport.h:13
 horamagnetimport.h:14
 horamagnetimport.h:15
 horamagnetimport.h:16
 horamagnetimport.h:17
 horamagnetimport.h:18
 horamagnetimport.h:19
 horamagnetimport.h:20
 horamagnetimport.h:21
 horamagnetimport.h:22
 horamagnetimport.h:23
 horamagnetimport.h:24
 horamagnetimport.h:25
 horamagnetimport.h:26
 horamagnetimport.h:27
 horamagnetimport.h:28
 horamagnetimport.h:29
 horamagnetimport.h:30
 horamagnetimport.h:31
 horamagnetimport.h:32
 horamagnetimport.h:33
 horamagnetimport.h:34
 horamagnetimport.h:35
 horamagnetimport.h:36
 horamagnetimport.h:37