#include <TYYYEventSource.h>
Inheritance diagram for TYYYEventSource:
Public Methods | |
TYYYEventSource (const Text_t *name, const Text_t *args, Int_t port) | |
Create source specifying values directly. More... | |
TYYYEventSource (TGo4UserSourceParameter *par) | |
Creat source from setup within usersource parameter object. More... | |
TYYYEventSource () | |
virtual | ~TYYYEventSource () |
virtual Int_t | Open () |
Open the file or connection. More... | |
virtual Int_t | Close () |
Close the file or connection. More... | |
virtual Int_t | NextEvent () |
Requests the next event from user event source. More... | |
void | BuildYYYEvent (TYYYRawEvent *target) |
This methods actually fills the target event class which is passed as pointer. More... | |
const Text_t * | GetArgs () |
void | SetArgs (const Text_t *arg) |
Int_t | GetPort () |
void | SetPort (Int_t val) |
Private Attributes | |
Bool_t | fbIsOpen |
TString | fxArgs |
Optional argument string. More... | |
Int_t | fiPort |
Optional port number. More... | |
std::ifstream * | fxFile |
file that contains the data in ascii format. More... | |
TString | fxNextline |
contains the next line in your file. More... |
|
Create source specifying values directly.
Definition at line 25 of file TYYYEventSource.cxx. References Open(). |
|
Creat source from setup within usersource parameter object.
Definition at line 33 of file TYYYEventSource.cxx. |
|
Definition at line 52 of file TYYYEventSource.cxx. |
|
Definition at line 59 of file TYYYEventSource.cxx. References Close(). |
|
Open the file or connection.
Definition at line 130 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 153 of file TYYYEventSource.cxx. References fbIsOpen, and fxFile. Referenced by ~TYYYEventSource(). |
|
Requests the next event from user event source.
Definition at line 107 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 64 of file TYYYEventSource.cxx. References TYYYRawEvent::fdData, TGo4EventSource::fguTXTLEN, fxNextline, TYYYRawEvent::ReAllocate(), TGo4EventSource::SetErrMess(), and TGo4EventElement::SetValid(). Referenced by TYYYRawEvent::Fill(). |
|
Definition at line 69 of file TYYYEventSource.h. References fxArgs. |
|
Definition at line 74 of file TYYYEventSource.h. References fxArgs. Referenced by TYYYEventSource(). |
|
Definition at line 79 of file TYYYEventSource.h. References fiPort. |
|
Definition at line 81 of file TYYYEventSource.h. References fiPort. Referenced by TYYYEventSource(). |
|
Definition at line 85 of file TYYYEventSource.h. |
|
Optional argument string.
Definition at line 88 of file TYYYEventSource.h. |
|
Optional port number.
Definition at line 91 of file TYYYEventSource.h. |
|
file that contains the data in ascii format.
Definition at line 94 of file TYYYEventSource.h. |
|
contains the next line in your file.
Definition at line 97 of file TYYYEventSource.h. Referenced by BuildYYYEvent(), NextEvent(), and Open(). |