Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4EventServer/TGo4FileStoreParameter.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE 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 "Go4Event/TGo4EventStoreParameter.h"
00020 #include "Go4EventServer/Go4EventServerTypes.h"
00021 
00022 class TGo4EventElement;
00023 
00024 class TGo4FileStoreParameter : public TGo4EventStoreParameter {
00025    friend class TGo4FileStore;
00026 
00027    public:
00028       TGo4FileStoreParameter() ;
00029 
00030       TGo4FileStoreParameter(const char* name,
00031                              Int_t splitlevel=99,
00032                              Int_t bufsize=32000,
00033                              Int_t compression=5,
00034                              Int_t autosave=5000000);
00035 
00036       virtual ~TGo4FileStoreParameter();
00037 
00040       virtual Int_t PrintParameter(Text_t* buffer=0, Int_t buflen=0);
00041 
00043       virtual Bool_t UpdateFrom(TGo4Parameter* rhs);
00044 
00045       Int_t GetSplitlevel() const { return fiSplit; }
00046       void SetSplitlevel(Int_t split) { fiSplit=split; }
00047 
00048       Int_t GetBufsize() const { return fiBufsize; }
00049       void SetBufsize(Int_t bufsize) { fiBufsize=bufsize; }
00050 
00051       Int_t GetCompression() const { return fiCompression; }
00052       void SetCompression(Int_t comp) { fiCompression=comp; }
00053 
00054       Int_t GetAutosaveSize() const { return fiAutosavesize; }
00055       void SetAutosaveSize(Int_t bufsize) { fiAutosavesize=bufsize; }
00056 
00057       Int_t IsOverwriteMode() const { return fbOverwrite; }
00058       void SetOverwriteMode(Bool_t over=kTRUE) { fbOverwrite = over ? 1 : 0; }
00059 
00060    private:
00061 
00063       Int_t fiSplit;
00064 
00066       Int_t fiBufsize;
00067 
00069       Int_t fiCompression;
00070 
00072       Int_t fiAutosavesize;
00073 
00077       Int_t fbOverwrite;
00078 
00079    ClassDef(TGo4FileStoreParameter,1)
00080 };
00081 
00082 #endif //TGO4FILESTOREPARAMETER_H
00083 
00084 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:53 2005 for Go4-v2.10-5 by doxygen1.2.15