#include <TYYYEventSource.h>
Inheritance diagram for TYYYEventSource:
Public Member Functions | |
TYYYEventSource () | |
TYYYEventSource (const char *name, const char *args, Int_t port) | |
Create source specifying values directly. | |
TYYYEventSource (TGo4UserSourceParameter *par) | |
Creat source from setup within usersource parameter object. | |
virtual | ~TYYYEventSource () |
virtual Int_t | Open () |
Open the file or connection. | |
virtual Int_t | Close () |
Close the file or connection. | |
virtual Int_t | NextEvent () |
Requests the next event from user event source. | |
void | BuildYYYEvent (TYYYRawEvent *target) |
This methods actually fills the target event class which is passed as pointer. | |
const char * | GetArgs () const |
void | SetArgs (const char *arg) |
Int_t | GetPort () const |
void | SetPort (Int_t val) |
Private Attributes | |
Bool_t | fbIsOpen |
TString | fxArgs |
Optional argument string. | |
Int_t | fiPort |
Optional port number. | |
std::ifstream * | fxFile |
file that contains the data in ascii format. | |
TString | fxNextline |
contains the next line in your file |
|
Definition at line 54 of file TYYYEventSource.cxx. |
|
Create source specifying values directly.
Definition at line 27 of file TYYYEventSource.cxx. References Open(). |
|
Creat source from setup within usersource parameter object.
Definition at line 35 of file TYYYEventSource.cxx. References TGo4UserSourceParameter::GetExpression(), TGo4UserSourceParameter::GetPort(), Open(), SetArgs(), and SetPort(). |
|
Definition at line 61 of file TYYYEventSource.cxx. References Close(). |
|
Open the file or connection.
Definition at line 132 of file TYYYEventSource.cxx. References fbIsOpen, TGo4EventSource::fguTXTLEN, fxFile, fxNextline, TGo4EventSource::SetCreateStatus(), and TGo4EventSource::SetErrMess(). Referenced by TYYYEventSource(). |
|
Close the file or connection.
Definition at line 155 of file TYYYEventSource.cxx. References fbIsOpen, and fxFile. Referenced by ~TYYYEventSource(). |
|
Requests the next event from user event source.
Definition at line 109 of file TYYYEventSource.cxx. References TGo4EventSource::fguTXTLEN, fxFile, fxNextline, TGo4EventSource::SetCreateStatus(), and TGo4EventSource::SetErrMess(). Referenced by TYYYRawEvent::Fill(). |
|
This methods actually fills the target event class which is passed as pointer. Uses the latest event which is referenced by fxEvent or fxBuffer. Does _not_ fetch a new event from source, therefore one source event may be used to fill several TYYYEvent classes. To get a new event call NextEvent() before this method. Definition at line 66 of file TYYYEventSource.cxx. References TYYYRawEvent::fdData, TGo4EventSource::fguTXTLEN, fxNextline, TYYYRawEvent::ReAllocate(), TGo4EventSource::SetErrMess(), and TGo4EventElement::SetValid(). Referenced by TYYYRawEvent::Fill(). |
|
Definition at line 58 of file TYYYEventSource.h. References fxArgs. |
|
Definition at line 60 of file TYYYEventSource.h. References fxArgs. Referenced by TYYYEventSource(). |
|
Definition at line 62 of file TYYYEventSource.h. References fiPort. |
|
Definition at line 64 of file TYYYEventSource.h. References fiPort. Referenced by TYYYEventSource(). |
|
Definition at line 68 of file TYYYEventSource.h. |
|
Optional argument string.
Definition at line 71 of file TYYYEventSource.h. |
|
Optional port number.
Definition at line 74 of file TYYYEventSource.h. |
|
file that contains the data in ascii format.
Definition at line 77 of file TYYYEventSource.h. Referenced by Close(), NextEvent(), and Open(). |
|
contains the next line in your file
Definition at line 80 of file TYYYEventSource.h. Referenced by BuildYYYEvent(), NextEvent(), and Open(). |