Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TYYYEventSource.h

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE 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 #ifndef TYYYEVENTSOURCE_H
00017 #define TYYYEVENTSOURCE_H
00018 
00019 #include "TGo4EventSource.h"
00020 
00021 using namespace std;
00022 #include <fstream>
00023 
00024 class TYYYRawEvent;
00025 class TGo4UserSourceParameter;
00026 
00027 class TYYYEventSource : public TGo4EventSource {
00028    public:
00029 
00030       TYYYEventSource();
00031 
00033       TYYYEventSource(const char* name, const char* args, Int_t port);
00034 
00036       TYYYEventSource(TGo4UserSourceParameter* par);
00037 
00038       virtual ~TYYYEventSource();
00039 
00040 
00042       virtual Int_t Open();
00043 
00045       virtual Int_t Close();
00046 
00048       virtual Int_t NextEvent();
00049 
00050 
00056       void BuildYYYEvent(TYYYRawEvent * target);
00057 
00058       const char* GetArgs() const { return fxArgs.Data(); }
00059 
00060       void SetArgs(const char* arg) { fxArgs=arg; }
00061 
00062       Int_t GetPort() const { return fiPort; }
00063 
00064       void SetPort(Int_t val) { fiPort=val; }
00065 
00066    private:
00067 
00068       Bool_t fbIsOpen;
00069 
00071       TString fxArgs;
00072 
00074       Int_t fiPort;
00075 
00077       std::ifstream* fxFile; 
00078 
00080       TString fxNextline;
00081 
00082    ClassDef(TYYYEventSource, 1)
00083 };
00084 
00085 #endif //TGO4MBSSOURCE_H
00086 
00087 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:11 2008 for Go4-v3.04-1 by  doxygen 1.4.2