00001 // $Id: TGo4FileStoreParameter.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4FILESTOREPARAMETER_H 00015 #define TGO4FILESTOREPARAMETER_H 00016 00017 #include "TGo4EventStoreParameter.h" 00018 00019 class TGo4FileStoreParameter : public TGo4EventStoreParameter { 00020 00021 public: 00022 TGo4FileStoreParameter() ; 00023 00024 TGo4FileStoreParameter(const char* name, 00025 Int_t splitlevel=99, 00026 Int_t bufsize=32000, 00027 Int_t compression=5, 00028 Int_t autosave=5000000); 00029 00030 virtual ~TGo4FileStoreParameter(); 00031 00034 virtual Int_t PrintParameter(Text_t* buffer=0, Int_t buflen=0); 00035 00037 virtual Bool_t UpdateFrom(TGo4Parameter* rhs); 00038 00039 Int_t GetSplitlevel() const { return fiSplit; } 00040 void SetSplitlevel(Int_t split) { fiSplit=split; } 00041 00042 Int_t GetBufsize() const { return fiBufsize; } 00043 void SetBufsize(Int_t bufsize) { fiBufsize=bufsize; } 00044 00045 Int_t GetCompression() const { return fiCompression; } 00046 void SetCompression(Int_t comp) { fiCompression=comp; } 00047 00048 Int_t GetAutosaveSize() const { return fiAutosavesize; } 00049 void SetAutosaveSize(Int_t bufsize) { fiAutosavesize=bufsize; } 00050 00051 Int_t IsOverwriteMode() const { return fbOverwrite; } 00052 void SetOverwriteMode(Bool_t over=kTRUE) { fbOverwrite = over ? 1 : 0; } 00053 00054 private: 00055 00057 Int_t fiSplit; 00058 00060 Int_t fiBufsize; 00061 00063 Int_t fiCompression; 00064 00066 Int_t fiAutosavesize; 00067 00071 Int_t fbOverwrite; 00072 00073 ClassDef(TGo4FileStoreParameter,1) 00074 }; 00075 00076 #endif //TGO4FILESTOREPARAMETER_H