GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4UserSourceParameter.h
Go to the documentation of this file.
1 // $Id: TGo4UserSourceParameter.h 478 2009-10-29 12:26:09Z linev $
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 für 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  virtual Int_t PrintParameter(Text_t* buffer=0, Int_t buflen=0);
36 
37  private:
38 
40  Int_t fiPort;
41 
43  TString fxExpression;
44 
45  ClassDef(TGo4UserSourceParameter,1)
46 };
47 
48 #endif //TGO4USERSOURCEPARAMETER_H
const char * GetExpression() const
void SetExpression(const char *name)
virtual Int_t PrintParameter(Text_t *buffer=0, Int_t buflen=0)