00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #ifndef TGO4FILESTOREPARAMETER_H 00017 #define TGO4FILESTOREPARAMETER_H 00018 00019 #include "TGo4EventStoreParameter.h" 00020 00021 class TGo4FileStoreParameter : public TGo4EventStoreParameter { 00022 00023 public: 00024 TGo4FileStoreParameter() ; 00025 00026 TGo4FileStoreParameter(const char* name, 00027 Int_t splitlevel=99, 00028 Int_t bufsize=32000, 00029 Int_t compression=5, 00030 Int_t autosave=5000000); 00031 00032 virtual ~TGo4FileStoreParameter(); 00033 00036 virtual Int_t PrintParameter(Text_t* buffer=0, Int_t buflen=0); 00037 00039 virtual Bool_t UpdateFrom(TGo4Parameter* rhs); 00040 00041 Int_t GetSplitlevel() const { return fiSplit; } 00042 void SetSplitlevel(Int_t split) { fiSplit=split; } 00043 00044 Int_t GetBufsize() const { return fiBufsize; } 00045 void SetBufsize(Int_t bufsize) { fiBufsize=bufsize; } 00046 00047 Int_t GetCompression() const { return fiCompression; } 00048 void SetCompression(Int_t comp) { fiCompression=comp; } 00049 00050 Int_t GetAutosaveSize() const { return fiAutosavesize; } 00051 void SetAutosaveSize(Int_t bufsize) { fiAutosavesize=bufsize; } 00052 00053 Int_t IsOverwriteMode() const { return fbOverwrite; } 00054 void SetOverwriteMode(Bool_t over=kTRUE) { fbOverwrite = over ? 1 : 0; } 00055 00056 private: 00057 00059 Int_t fiSplit; 00060 00062 Int_t fiBufsize; 00063 00065 Int_t fiCompression; 00066 00068 Int_t fiAutosavesize; 00069 00073 Int_t fbOverwrite; 00074 00075 ClassDef(TGo4FileStoreParameter,1) 00076 }; 00077 00078 #endif //TGO4FILESTOREPARAMETER_H 00079 00080 //----------------------------END OF GO4 SOURCE FILE ---------------------