GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4FileStoreParameter.h
Go to the documentation of this file.
1 // $Id$
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4FILESTOREPARAMETER_H
15 #define TGO4FILESTOREPARAMETER_H
16 
18 
20 
21  public:
23 
24  TGo4FileStoreParameter(const char *name,
25  Int_t splitlevel = 99,
26  Int_t bufsize = 32000,
27  Int_t compression = 5,
28  Int_t autosave = 10000);
29 
30  virtual ~TGo4FileStoreParameter();
31 
32  void Print(Option_t *opt = "") const override;
33 
35  Bool_t UpdateFrom(TGo4Parameter *rhs) override;
36 
37  Int_t GetSplitlevel() const { return fiSplit; }
38  void SetSplitlevel(Int_t split) { fiSplit = split; }
39 
40  Int_t GetBufsize() const { return fiBufsize; }
41  void SetBufsize(Int_t bufsize) { fiBufsize = bufsize; }
42 
43  Int_t GetCompression() const { return fiCompression; }
44  void SetCompression(Int_t comp) { fiCompression = comp; }
45 
46  Int_t GetAutosaveSize() const { return fiAutosavesize; }
47  void SetAutosaveSize(Int_t interval) { fiAutosavesize = interval; }
48 
49  Int_t IsOverwriteMode() const { return fbOverwrite; }
50  void SetOverwriteMode(Bool_t over = kTRUE) { fbOverwrite = over ? 1 : 0; }
51 
52  private:
53 
55  Int_t fiSplit{99};
56 
58  Int_t fiBufsize{64000};
59 
61  Int_t fiCompression{5};
62 
64  Int_t fiAutosavesize{10000};
65 
69  Int_t fbOverwrite{1};
70 
71  ClassDefOverride(TGo4FileStoreParameter,1)
72 };
73 
74 #endif //TGO4FILESTOREPARAMETER_H
void SetSplitlevel(Int_t split)
void SetAutosaveSize(Int_t interval)
Bool_t UpdateFrom(TGo4Parameter *rhs) override
void SetOverwriteMode(Bool_t over=kTRUE)
void SetBufsize(Int_t bufsize)
void Print(Option_t *opt="") const override