GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TYYYEventSource.h
Go to the documentation of this file.
1 // $Id: TYYYEventSource.h 2627 2019-10-01 08:02:45Z 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 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 TYYYEVENTSOURCE_H
15 #define TYYYEVENTSOURCE_H
16 
17 #include "TGo4EventSource.h"
18 #include <fstream>
19 
20 class TYYYRawEvent;
22 
24  public:
25 
27 
29  TYYYEventSource(const char* name, const char* args, Int_t port);
30 
33 
34  virtual ~TYYYEventSource();
35 
36 
38  virtual Int_t Open();
39 
41  virtual Int_t Close();
42 
43 
45  virtual Bool_t CheckEventClass(TClass* cl);
46 
53  virtual Bool_t BuildEvent(TGo4EventElement* dest);
54 
55  const char* GetArgs() const { return fxArgs.Data(); }
56 
57  void SetArgs(const char* arg) { fxArgs=arg; }
58 
59  Int_t GetPort() const { return fiPort; }
60 
61  void SetPort(Int_t val) { fiPort=val; }
62 
63  private:
64 
65  Bool_t fbIsOpen;
66 
68  TString fxArgs;
69 
71  Int_t fiPort;
72 
74  std::ifstream* fxFile;
75 
76  ClassDef(TYYYEventSource, 1)
77 };
78 
79 #endif //TGO4MBSSOURCE_H
void SetArgs(const char *arg)
virtual Bool_t BuildEvent(TGo4EventElement *dest)
void SetPort(Int_t val)
std::ifstream * fxFile
virtual ~TYYYEventSource()
virtual Bool_t CheckEventClass(TClass *cl)
virtual Int_t Close()
virtual Int_t Open()
const char * GetArgs() const
Int_t GetPort() const