00001 // $Id: TGo4ComAutosave.h 1033 2013-11-05 15:30:01Z 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 TGO4COMAUTOSAVE_H 00015 #define TGO4COMAUTOSAVE_H 00016 00017 #include "TGo4AnalysisCommand.h" 00018 #include "TString.h" 00019 00023 class TGo4ComAutosave : public TGo4AnalysisCommand { 00024 public: 00025 00026 TGo4ComAutosave(); 00027 00028 virtual ~TGo4ComAutosave(); 00029 00030 virtual Int_t ExeCom(); 00031 00035 virtual void Set(TGo4RemoteCommand* remcon); 00036 00037 void SetAutoSaveCompression(Int_t i=5) { fiAutoSaveCompression=i; } 00038 00039 void SetAutoSaveOverwrite(Bool_t over=kTRUE) { fbAutoSaveOverwrite = over ? 1 : 0; } 00040 00041 void SetAutoFileName(const char* name) { fxAutoFileName = name; } 00042 00043 const char* GetAutoFileName() const { return fxAutoFileName.Data(); } 00044 00045 private: 00046 00048 Int_t fiAutoSaveCompression; 00049 00051 Int_t fbAutoSaveOverwrite; 00052 00054 TString fxAutoFileName; 00055 00056 ClassDef(TGo4ComAutosave,1) 00057 }; 00058 00059 #endif //TGO4COMAUTOSAVE_H