GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4EventSourceParameter.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 TGO4EVENTSOURCEPARAMETER_H
15 #define TGO4EVENTSOURCEPARAMETER_H
16 
17 #include "TGo4Parameter.h"
18 
27  public:
29 
30  TGo4EventSourceParameter(const char *name, Int_t id = 0);
31 
32  virtual ~TGo4EventSourceParameter();
33 
34  Int_t GetID() const { return fiID; }
35 
36  Int_t GetTimeout() const { return fiTimeout; }
37 
38  void SetTimeout(Int_t out) { fiTimeout=out; }
39 
40  void Print(Option_t *opt = "") const override;
41 
43  Bool_t UpdateFrom(TGo4Parameter *rhs) override;
44 
45  private:
46 
48  Int_t fiID{0};
49 
51  Int_t fiTimeout{1};
52 
53  ClassDefOverride(TGo4EventSourceParameter,1)
54 };
55 
56 #endif //TGO4EVENTSOURCEPARAMETER_H
Bool_t UpdateFrom(TGo4Parameter *rhs) override
void Print(Option_t *opt="") const override