00001 //--------------------------------------------------------------- 00002 // Go4 Release Package v2.10-5 (build 21005) 00003 // 03-Nov-2005 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at DVEE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 00017 00018 #ifndef TYYYEVENTSOURCE_H 00019 #define TYYYEVENTSOURCE_H 00020 00021 00022 00023 #include "Go4Event/TGo4EventSource.h" 00024 00025 00026 00027 class TYYYRawEvent; 00028 class TGo4UserSourceParameter; 00029 00030 class TYYYEventSource : public TGo4EventSource { 00031 public: 00032 00033 00035 TYYYEventSource(const Text_t * name, const Text_t* args, Int_t port); 00036 00038 TYYYEventSource(TGo4UserSourceParameter* par); 00039 00040 TYYYEventSource(); 00041 00042 virtual ~TYYYEventSource(); 00043 00044 00048 virtual Int_t Open(); 00049 00053 virtual Int_t Close(); 00057 virtual Int_t NextEvent(); 00058 00059 00065 void BuildYYYEvent(TYYYRawEvent * target); 00066 00067 00068 00069 const Text_t* GetArgs() 00070 { 00071 return fxArgs.Data(); 00072 } 00073 00074 void SetArgs(const Text_t* arg) 00075 { 00076 fxArgs=arg; 00077 } 00078 00079 Int_t GetPort(){return fiPort;} 00080 00081 void SetPort(Int_t val){fiPort=val;} 00082 00083 private: 00084 00085 Bool_t fbIsOpen; 00086 00088 TString fxArgs; 00089 00091 Int_t fiPort; 00092 00094 std::ifstream* fxFile; 00095 00097 TString fxNextline; 00098 00099 00100 ClassDef(TYYYEventSource, 1) 00101 }; 00102 #endif //TGO4MBSSOURCE_H 00103 00104 00105 00106 00107 //----------------------------END OF GO4 SOURCE FILE ---------------------