GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
#include <TGo4EventSource.h>
Public Member Functions | |
TGo4EventSource () | |
TGo4EventSource (const char *name) | |
virtual | ~TGo4EventSource () |
virtual Bool_t | BuildEvent (TGo4EventElement *dest) |
Fill the destination event dest. | |
virtual Bool_t | CheckEventClass (TClass *cl) |
Check that event class is supported by event source. | |
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. | |
Static Public Attributes | |
static const Int_t | fgiTIMEOUTDEFAULT =1 |
Default timeout in seconds for event input. | |
Protected Types | |
enum | { fguTXTLEN = 256 } |
text length More... | |
Protected Member Functions | |
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. | |
Private Attributes | |
Int_t | fiCreateStatus {0} |
Contains return value of eventsource open (e.g. | |
Int_t | fiEventStatus {0} |
Contains return value of eventsource getevent (e.g. | |
TString | fxErrMess |
Most recent error message. | |
Definition at line 30 of file TGo4EventSource.h.
|
protected |
TGo4EventSource::TGo4EventSource | ( | ) |
Definition at line 27 of file TGo4EventSource.cxx.
Referenced by TGo4EventProcessor::TGo4EventProcessor(), TGo4FileSource::TGo4FileSource(), TGo4FileSource::TGo4FileSource(), TGo4FileSource::TGo4FileSource(), TGo4HDF5Source::TGo4HDF5Source(), TGo4HDF5Source::TGo4HDF5Source(), TGo4HDF5Source::TGo4HDF5Source(), TGo4MbsSource::TGo4MbsSource(), TGo4MbsSource::TGo4MbsSource(), TGo4MbsSource::TGo4MbsSource(), TGo4TreeSource::TGo4TreeSource(), TGo4TreeSource::TGo4TreeSource(), TGo4TreeSource::TGo4TreeSource(), TYYYEventSource::TYYYEventSource(), TYYYEventSource::TYYYEventSource(), and TYYYEventSource::TYYYEventSource().
TGo4EventSource::TGo4EventSource | ( | const char * | name | ) |
Definition at line 32 of file TGo4EventSource.cxx.
References GO4TRACE.
|
virtual |
Definition at line 39 of file TGo4EventSource.cxx.
References GO4TRACE.
|
inlinevirtual |
Fill the destination event dest.
Reimplemented in TGo4CompositeProcessor, TGo4FileSource, TGo4HDF5Source, TGo4MbsSource, TGo4PrintProcessor, TGo4TreeSource, TXXXAnlProc, TXXXAnlProc, TXXXProc, TXXXProc, TXXXProc, TXXXProc, TXXXUnpackProc, TXXXUnpackProc, TYYYEventSource, and TYYYUnpackProc.
Definition at line 63 of file TGo4EventSource.h.
|
virtual |
Check that event class is supported by event source.
Reimplemented in TGo4MbsSource, TYYYEventSource, and TYYYUnpackProc.
Definition at line 90 of file TGo4EventSource.cxx.
Referenced by CreateDefaultAnalysis().
|
override |
Definition at line 79 of file TGo4EventSource.cxx.
References TGo4Log::Info().
|
virtual |
Access to the name of the currently active source.
for filelist, this is the active input file
Reimplemented in TGo4MbsFile.
Definition at line 85 of file TGo4EventSource.cxx.
|
inline |
Status value of server/file open.
Definition at line 47 of file TGo4EventSource.h.
References fiCreateStatus.
Referenced by TGo4EventSourceException::TGo4EventSourceException(), TGo4MbsFile::Close(), TGo4MbsSource::Close(), TGo4MbsSource::Open(), and TGo4MbsFile::OpenFile().
|
inline |
Status/ error message of the last event.
Definition at line 53 of file TGo4EventSource.h.
References fxErrMess.
Referenced by TGo4EventSourceException::TGo4EventSourceException(), TGo4MbsSource::BuildEvent(), TGo4MbsSource::BuildMbsEvent(), and TGo4MbsSource::NextEvent().
|
inline |
Status of the last event.
Definition at line 50 of file TGo4EventSource.h.
References fiEventStatus.
Referenced by TGo4EventSourceException::TGo4EventSourceException(), TGo4MbsSource::BuildMbsEvent(), TGo4MbsFile::NextEvent(), and TGo4MbsSource::NextEvent().
|
inlineprotected |
Status value of event source init (file/server open).
Definition at line 80 of file TGo4EventSource.h.
References fiCreateStatus.
Referenced by TGo4MbsFile::AddFileName(), TYYYEventSource::BuildEvent(), TGo4MbsFile::NextFile(), TGo4MbsSource::Open(), TYYYEventSource::Open(), TGo4MbsFile::OpenFile(), TGo4FileSource::OpenNextFile(), ThrowEOF(), and ThrowError().
|
inlineprotected |
To be used for modification of the message by the event source implementation.
Definition at line 74 of file TGo4EventSource.h.
References fxErrMess.
Referenced by TGo4MbsFile::AddFileName(), TGo4HDF5Source::BuildDataSet(), TGo4HDF5Source::BuildEvent(), TYYYEventSource::BuildEvent(), TGo4MbsSource::BuildMbsEvent(), TGo4HDF5BasicDataHandle::BuildReadDataset(), TGo4HDF5Source::CloseCurrentFile(), TGo4MbsFile::NextEvent(), TGo4MbsSource::NextEvent(), TGo4MbsFile::NextFile(), TGo4MbsSource::Open(), TYYYEventSource::Open(), TGo4HDF5Source::OpenFile(), TGo4MbsFile::OpenFile(), ThrowEOF(), and ThrowError().
|
inlineprotected |
Status of the last event.
Definition at line 77 of file TGo4EventSource.h.
References fiEventStatus.
Referenced by TYYYEventSource::BuildEvent(), TGo4MbsFile::NextEvent(), TGo4MbsSource::NextEvent(), ThrowEOF(), and ThrowError().
|
protected |
EOF thrower.
Definition at line 62 of file TGo4EventSource.cxx.
References fguTXTLEN, SetCreateStatus(), SetErrMess(), and SetEventStatus().
Referenced by TGo4FileSource::BuildEvent().
|
protected |
Exception thrower.
Definition at line 44 of file TGo4EventSource.cxx.
References fguTXTLEN, SetCreateStatus(), SetErrMess(), and SetEventStatus().
Referenced by TGo4FileSource::TGo4FileSource(), TGo4FileSource::TGo4FileSource(), TGo4HDF5Source::TGo4HDF5Source(), TGo4HDF5Source::TGo4HDF5Source(), TGo4FileSource::BuildEvent(), TGo4HDF5Source::BuildEvent(), TGo4TreeSource::BuildEvent(), TGo4TreeSource::Open(), and TGo4FileSource::OpenNextFile().
|
static |
Default timeout in seconds for event input.
Definition at line 66 of file TGo4EventSource.h.
Referenced by TGo4MbsSource::TGo4MbsSource().
|
private |
Contains return value of eventsource open (e.g.
f_evt_get_open) call. May be checked by the creating factory after return from source ctor.
Definition at line 102 of file TGo4EventSource.h.
Referenced by GetCreateStatus(), and SetCreateStatus().
|
private |
Contains return value of eventsource getevent (e.g.
f_evt_get_event) call. May be checked by the controlling event loop.
Definition at line 105 of file TGo4EventSource.h.
Referenced by GetEventStatus(), and SetEventStatus().
|
private |
Most recent error message.
May be delivered by f_evt_error, for example.
Definition at line 108 of file TGo4EventSource.h.
Referenced by GetErrMess(), and SetErrMess().