GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
23
24 public:
26
27 TGo4UserSourceParameter(const char *name, const char *expr = "", Int_t port = 0);
28
30
31 void SetPort(Int_t port) { fiPort = port; }
32 Int_t GetPort() const { return fiPort; }
33
35 const char *GetExpression() const { return fxExpression.Data(); }
36 void SetExpression(const char *name) { fxExpression = name; }
37
38 void Print(Option_t *opt = "") const override;
39
41 Bool_t UpdateFrom(TGo4Parameter *rhs) override;
42
43 private:
44
46 Int_t fiPort{0};
47
49 TString fxExpression;
50
51 ClassDefOverride(TGo4UserSourceParameter,1)
52};
53
54#endif //TGO4USERSOURCEPARAMETER_H
Base class for all parameter aggregations, e.g.
const char * GetExpression() const
User expression as string.
Bool_t UpdateFrom(TGo4Parameter *rhs) override
update contents of parameter class with external object.
TString fxExpression
Any user defined expression as string.
void SetExpression(const char *name)
void Print(Option_t *opt="") const override