GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
TYYYEventSource Class Reference

#include <TYYYEventSource.h>

+ Inheritance diagram for TYYYEventSource:

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,...)
 

Detailed Description

Definition at line 23 of file TYYYEventSource.h.

Constructor & Destructor Documentation

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().

TYYYEventSource::~TYYYEventSource ( )
virtual

Definition at line 65 of file TYYYEventSource.cxx.

References Close().

Member Function Documentation

Bool_t TYYYEventSource::BuildEvent ( TGo4EventElement dest)
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().

Bool_t TYYYEventSource::CheckEventClass ( TClass *  cl)
virtual

This method checks if event class is suited for the source

Reimplemented from TGo4EventSource.

Definition at line 70 of file TYYYEventSource.cxx.

Int_t TYYYEventSource::Close ( )
virtual

Close the file or connection.

Definition at line 142 of file TYYYEventSource.cxx.

References fbIsOpen, fxFile, and TGo4Log::Info().

Referenced by ~TYYYEventSource().

const char* TYYYEventSource::GetArgs ( ) const
inline

Definition at line 55 of file TYYYEventSource.h.

References fxArgs.

Int_t TYYYEventSource::GetPort ( ) const
inline

Definition at line 59 of file TYYYEventSource.h.

References fiPort.

Int_t TYYYEventSource::Open ( )
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().

void TYYYEventSource::SetArgs ( const char *  arg)
inline

Definition at line 57 of file TYYYEventSource.h.

References fxArgs.

Referenced by TYYYEventSource().

void TYYYEventSource::SetPort ( Int_t  val)
inline

Definition at line 61 of file TYYYEventSource.h.

References fiPort.

Referenced by TYYYEventSource().

Member Data Documentation

Bool_t TYYYEventSource::fbIsOpen
private

Definition at line 65 of file TYYYEventSource.h.

Referenced by Close(), and Open().

Int_t TYYYEventSource::fiPort
private

Optional port number

Definition at line 71 of file TYYYEventSource.h.

Referenced by GetPort(), and SetPort().

TString TYYYEventSource::fxArgs
private

Optional argument string

Definition at line 68 of file TYYYEventSource.h.

Referenced by GetArgs(), and SetArgs().

std::ifstream* TYYYEventSource::fxFile
private

file that contains the data in ascii format.

Definition at line 74 of file TYYYEventSource.h.

Referenced by BuildEvent(), Close(), and Open().


The documentation for this class was generated from the following files: