GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4UserSourceParameter.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 TGO4USERSOURCEPARAMETER_H
15 #define TGO4USERSOURCEPARAMETER_H
16 
18 
20 
21  public:
23 
24  TGo4UserSourceParameter(const char *name, const char *expr = "", Int_t port = 0);
25 
26  virtual ~TGo4UserSourceParameter();
27 
28  void SetPort(Int_t port) { fiPort = port; }
29  Int_t GetPort() const { return fiPort; }
30 
32  const char *GetExpression() const { return fxExpression.Data(); }
33  void SetExpression(const char *name) { fxExpression = name; }
34 
35  void Print(Option_t *opt = "") const override;
36 
38  Bool_t UpdateFrom(TGo4Parameter *rhs) override;
39 
40  private:
41 
43  Int_t fiPort{0};
44 
46  TString fxExpression;
47 
48  ClassDefOverride(TGo4UserSourceParameter,1)
49 };
50 
51 #endif //TGO4USERSOURCEPARAMETER_H
Bool_t UpdateFrom(TGo4Parameter *rhs) override
const char * GetExpression() const
void Print(Option_t *opt="") const override
void SetExpression(const char *name)