/[PAMELA software]/YodaProfiler/inc/PamelaDBOperations.h
ViewVC logotype

Diff of /YodaProfiler/inc/PamelaDBOperations.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by pam-fi, Fri Sep 8 14:42:48 2006 UTC revision 1.4 by pam-fi, Mon Sep 11 16:38:18 2006 UTC
# Line 49  class PamelaDBOperations { Line 49  class PamelaDBOperations {
49      UInt_t tsync;      UInt_t tsync;
50      UInt_t toffset;      UInt_t toffset;
51      //      //
52      Long64_t olderthan;  //    Long64_t olderthan;
53      //      //
54      UInt_t BOOTNO;      UInt_t BOOTNO;
55      UInt_t obt0;      UInt_t obt0;
# Line 77  class PamelaDBOperations { Line 77  class PamelaDBOperations {
77      //      //
78      Bool_t NOBOOT;      Bool_t NOBOOT;
79      Bool_t debug;      Bool_t debug;
80            
81            // flag to control profiler actions
82            Bool_t INSERT_RAW;
83            Bool_t INSERT_ROOT;
84            Bool_t VALIDATE;
85            
86            TDatime *clean_time;
87                    
88      //      //
89      typedef std::list<const char*> pcksList;      typedef std::list<const char*> pcksList;
90      static void getPacketsNames(pcksList &pcksNames){      static void getPacketsNames(pcksList &pcksNames){
# Line 151  class PamelaDBOperations { Line 159  class PamelaDBOperations {
159    
160   public:   public:
161      //      //
162      PamelaDBOperations(TString host, TString user, TString password, TString filerawname, TString filerootname, UInt_t boot, UInt_t tsync, UInt_t obt0, Bool_t debug); // constructor      PamelaDBOperations(TString host, TString user, TString password, TString filerawname, TString filerootname, UInt_t boot, UInt_t tsync, UInt_t obt0, Bool_t debug, Long64_t olderthan); // constructor
163      //      //
164      void Close(); // destructor      void Close(); // destructor
165      //      //
# Line 194  class PamelaDBOperations { Line 202  class PamelaDBOperations {
202      TString GetRootPath(){return((TString)gSystem->DirName(filerootname.Data())+'/');};      TString GetRootPath(){return((TString)gSystem->DirName(filerootname.Data())+'/');};
203      TString GetRootName(){return(filerootname);};      TString GetRootName(){return(filerootname);};
204      TString GetRawName(){return(filerawname);};      TString GetRawName(){return(filerawname);};
205            
206            const char*  GetCleanTime(){return clean_time->AsSQLString();};
207      //      //
208      // Functions      // Functions
209      //      //
# Line 209  class PamelaDBOperations { Line 219  class PamelaDBOperations {
219      Int_t ValidateRuns();      Int_t ValidateRuns();
220          Int_t assignVALIDATION(UInt_t ,Bool_t );          Int_t assignVALIDATION(UInt_t ,Bool_t );
221          //          //
222      void OpenFile();  //    void OpenFile();
223      void CheckFile();      void CheckConnection();
224      //      //
225            
226            Bool_t InsertRoot(){return(INSERT_ROOT);};
227            Bool_t InsertRaw(){return(INSERT_RAW);};
228            Bool_t Validate(){return(VALIDATE);};
229            
230  };  };
231  #endif /* PAMELA_DB_OPERATIONS_H */  #endif /* PAMELA_DB_OPERATIONS_H */

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23