GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4FileStoreParameter.h
Go to the documentation of this file.
1 // $Id: TGo4FileStoreParameter.h 1636 2015-06-24 12:05:31Z adamczew $
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 für 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 
34  virtual Int_t PrintParameter(Text_t* buffer=0, Int_t buflen=0);
35 
37  virtual Bool_t UpdateFrom(TGo4Parameter* rhs);
38 
39  Int_t GetSplitlevel() const { return fiSplit; }
40  void SetSplitlevel(Int_t split) { fiSplit=split; }
41 
42  Int_t GetBufsize() const { return fiBufsize; }
43  void SetBufsize(Int_t bufsize) { fiBufsize=bufsize; }
44 
45  Int_t GetCompression() const { return fiCompression; }
46  void SetCompression(Int_t comp) { fiCompression=comp; }
47 
48  Int_t GetAutosaveSize() const { return fiAutosavesize; }
49  void SetAutosaveSize(Int_t interval) { fiAutosavesize=interval; }
50 
51  Int_t IsOverwriteMode() const { return fbOverwrite; }
52  void SetOverwriteMode(Bool_t over=kTRUE) { fbOverwrite = over ? 1 : 0; }
53 
54  private:
55 
57  Int_t fiSplit;
58 
60  Int_t fiBufsize;
61 
64 
67 
71  Int_t fbOverwrite;
72 
73  ClassDef(TGo4FileStoreParameter,1)
74 };
75 
76 #endif //TGO4FILESTOREPARAMETER_H
void SetSplitlevel(Int_t split)
virtual Int_t PrintParameter(Text_t *buffer=0, Int_t buflen=0)
virtual Bool_t UpdateFrom(TGo4Parameter *rhs)
void SetAutosaveSize(Int_t interval)
void SetOverwriteMode(Bool_t over=kTRUE)
void SetBufsize(Int_t bufsize)