GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
#include <TYYYEventSource.h>
Public Member Functions | |
TYYYEventSource () | |
TYYYEventSource (const char *name, const char *args, Int_t port) | |
Create source specifying values directly. | |
TYYYEventSource (TGo4UserSourceParameter *par) | |
Create source from setup within usersource parameter object. | |
virtual | ~TYYYEventSource () |
Bool_t | BuildEvent (TGo4EventElement *dest) override |
This methods actually fills the target event class which is passed as pointer. | |
Bool_t | CheckEventClass (TClass *cl) override |
This method checks if event class is suited for the source. | |
virtual Int_t | Close () |
Close the file or connection. | |
const char * | GetArgs () const |
Int_t | GetPort () const |
virtual Int_t | Open () |
Open the file or connection. | |
void | SetArgs (const char *arg) |
void | SetPort (Int_t val) |
![]() | |
TGo4EventSource () | |
TGo4EventSource (const char *name) | |
virtual | ~TGo4EventSource () |
void | Clear (Option_t *opt="") override |
virtual const char * | GetActiveName () const |
Access to the name of the currently active source. | |
Int_t | GetCreateStatus () const |
Status value of server/file open. | |
const char * | GetErrMess () const |
Status/ error message of the last event. | |
Int_t | GetEventStatus () const |
Status of the last event. | |
Private Attributes | |
Bool_t | fbIsOpen {kFALSE} |
Int_t | fiPort {0} |
Optional port number. | |
TString | fxArgs |
Optional argument string. | |
std::ifstream * | fxFile {nullptr} |
file that contains the data in ascii format. | |
Additional Inherited Members | |
![]() | |
static const Int_t | fgiTIMEOUTDEFAULT =1 |
Default timeout in seconds for event input. | |
![]() | |
enum | { fguTXTLEN = 256 } |
text length More... | |
![]() | |
void | SetCreateStatus (Int_t status) |
Status value of event source init (file/server open). | |
void | SetErrMess (const char *txt) |
To be used for modification of the message by the event source implementation. | |
void | SetEventStatus (Int_t status) |
Status of the last event. | |
void | ThrowEOF (Int_t creastat, Int_t errstat, const char *message,...) |
EOF thrower. | |
void | ThrowError (Int_t creastat, Int_t errstat, const char *message,...) |
Exception thrower. | |
Definition at line 23 of file TYYYEventSource.h.
TYYYEventSource::TYYYEventSource | ( | ) |
Definition at line 51 of file TYYYEventSource.cxx.
References TGo4EventSource::TGo4EventSource(), fbIsOpen, fiPort, and fxArgs.
TYYYEventSource::TYYYEventSource | ( | const char * | name, |
const char * | args, | ||
Int_t | port ) |
Create source specifying values directly.
Definition at line 24 of file TYYYEventSource.cxx.
References TGo4EventSource::TGo4EventSource(), fbIsOpen, fiPort, fxArgs, and Open().
TYYYEventSource::TYYYEventSource | ( | TGo4UserSourceParameter * | par | ) |
Create source from setup within usersource parameter object.
Definition at line 35 of file TYYYEventSource.cxx.
References TGo4EventSource::TGo4EventSource(), TGo4Log::Error(), fbIsOpen, fiPort, fxArgs, TGo4UserSourceParameter::GetExpression(), TGo4UserSourceParameter::GetPort(), Open(), SetArgs(), and SetPort().
|
virtual |
Definition at line 59 of file TYYYEventSource.cxx.
References Close().
|
overridevirtual |
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 69 of file TYYYEventSource.cxx.
References fxFile, TGo4EventSource::SetCreateStatus(), TGo4EventSource::SetErrMess(), and TGo4EventSource::SetEventStatus().
|
overridevirtual |
This method checks if event class is suited for the source.
Reimplemented from TGo4EventSource.
Definition at line 64 of file TYYYEventSource.cxx.
|
virtual |
Close the file or connection.
Definition at line 136 of file TYYYEventSource.cxx.
References fbIsOpen, fxFile, and TGo4Log::Info().
Referenced by ~TYYYEventSource().
|
inline |
Definition at line 53 of file TYYYEventSource.h.
References fxArgs.
|
inline |
Definition at line 57 of file TYYYEventSource.h.
References fiPort.
|
virtual |
Open the file or connection.
Definition at line 118 of file TYYYEventSource.cxx.
References fbIsOpen, fxFile, TGo4Log::Info(), TGo4EventSource::SetCreateStatus(), and TGo4EventSource::SetErrMess().
Referenced by TYYYEventSource(), and TYYYEventSource().
|
inline |
Definition at line 55 of file TYYYEventSource.h.
References fxArgs.
Referenced by TYYYEventSource().
|
inline |
Definition at line 59 of file TYYYEventSource.h.
References fiPort.
Referenced by TYYYEventSource().
|
private |
Definition at line 63 of file TYYYEventSource.h.
Referenced by TYYYEventSource(), TYYYEventSource(), TYYYEventSource(), Close(), and Open().
|
private |
Optional port number.
Definition at line 69 of file TYYYEventSource.h.
Referenced by TYYYEventSource(), TYYYEventSource(), TYYYEventSource(), GetPort(), and SetPort().
|
private |
Optional argument string.
Definition at line 66 of file TYYYEventSource.h.
Referenced by TYYYEventSource(), TYYYEventSource(), TYYYEventSource(), GetArgs(), and SetArgs().
|
private |
file that contains the data in ascii format.
Definition at line 72 of file TYYYEventSource.h.
Referenced by BuildEvent(), Close(), and Open().