GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TYYYEventSource.h>
Public Member Functions | |
TYYYEventSource () | |
TYYYEventSource (const char *name, const char *args, Int_t port) | |
TYYYEventSource (TGo4UserSourceParameter *par) | |
virtual | ~TYYYEventSource () |
virtual Int_t | Open () |
virtual Int_t | Close () |
virtual Bool_t | CheckEventClass (TClass *cl) |
virtual Bool_t | BuildEvent (TGo4EventElement *dest) |
const char * | GetArgs () const |
void | SetArgs (const char *arg) |
Int_t | GetPort () const |
void | SetPort (Int_t val) |
Public Member Functions inherited from TGo4EventSource | |
TGo4EventSource (const char *name) | |
virtual | ~TGo4EventSource () |
TGo4EventSource () | |
virtual void | Clear (Option_t *opt="") |
Int_t | GetCreateStatus () const |
Int_t | GetEventStatus () const |
const char * | GetErrMess () const |
virtual const char * | GetActiveName () |
Private Attributes | |
Bool_t | fbIsOpen |
TString | fxArgs |
Int_t | fiPort |
std::ifstream * | fxFile |
Additional Inherited Members | |
Static Public Attributes inherited from TGo4EventSource | |
static const Int_t | fgiTIMEOUTDEFAULT =1 |
Protected Types inherited from TGo4EventSource | |
enum | { fguTXTLEN = 256 } |
Protected Member Functions inherited from TGo4EventSource | |
void | SetErrMess (const char *txt) |
void | SetEventStatus (Int_t status) |
void | SetCreateStatus (Int_t status) |
void | ThrowError (Int_t creastat, Int_t errstat, const char *message,...) |
void | ThrowEOF (Int_t creastat, Int_t errstat, const char *message,...) |
Definition at line 23 of file TYYYEventSource.h.
TYYYEventSource::TYYYEventSource | ( | ) |
Definition at line 56 of file TYYYEventSource.cxx.
TYYYEventSource::TYYYEventSource | ( | const char * | name, |
const char * | args, | ||
Int_t | port | ||
) |
Create source specifying values directly
Definition at line 27 of file TYYYEventSource.cxx.
References Open().
TYYYEventSource::TYYYEventSource | ( | TGo4UserSourceParameter * | par | ) |
Creat source from setup within usersource parameter object
Definition at line 39 of file TYYYEventSource.cxx.
References TGo4Log::Error(), TGo4UserSourceParameter::GetExpression(), TGo4UserSourceParameter::GetPort(), Open(), SetArgs(), and SetPort().
|
virtual |
Definition at line 65 of file TYYYEventSource.cxx.
References Close().
|
virtual |
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.
Reimplemented from TGo4EventSource.
Definition at line 75 of file TYYYEventSource.cxx.
References TYYYRawEvent::fdData, fxFile, TYYYRawEvent::ReAllocate(), TGo4EventSource::SetCreateStatus(), TGo4EventSource::SetErrMess(), TGo4EventSource::SetEventStatus(), and TGo4EventElement::SetValid().
|
virtual |
This method checks if event class is suited for the source
Reimplemented from TGo4EventSource.
Definition at line 70 of file TYYYEventSource.cxx.
|
virtual |
Close the file or connection.
Definition at line 142 of file TYYYEventSource.cxx.
References fbIsOpen, fxFile, and TGo4Log::Info().
Referenced by ~TYYYEventSource().
|
inline |
Definition at line 55 of file TYYYEventSource.h.
References fxArgs.
|
inline |
Definition at line 59 of file TYYYEventSource.h.
References fiPort.
|
virtual |
Open the file or connection.
Definition at line 126 of file TYYYEventSource.cxx.
References fbIsOpen, fxFile, TGo4Log::Info(), TGo4EventSource::SetCreateStatus(), and TGo4EventSource::SetErrMess().
Referenced by TYYYEventSource().
|
inline |
Definition at line 57 of file TYYYEventSource.h.
References fxArgs.
Referenced by TYYYEventSource().
|
inline |
Definition at line 61 of file TYYYEventSource.h.
References fiPort.
Referenced by TYYYEventSource().
|
private |
Definition at line 65 of file TYYYEventSource.h.
|
private |
Optional port number
Definition at line 71 of file TYYYEventSource.h.
|
private |
Optional argument string
Definition at line 68 of file TYYYEventSource.h.
|
private |
file that contains the data in ascii format.
Definition at line 74 of file TYYYEventSource.h.
Referenced by BuildEvent(), Close(), and Open().