Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TYYYEventSource Class Reference

#include <TYYYEventSource.h>

Inheritance diagram for TYYYEventSource:

TGo4EventSource List of all members.

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


Constructor & Destructor Documentation

TYYYEventSource::TYYYEventSource const Text_t *    name,
const Text_t *    args,
Int_t    port
 

Create source specifying values directly.

Definition at line 25 of file TYYYEventSource.cxx.

References Open().

TYYYEventSource::TYYYEventSource TGo4UserSourceParameter   par
 

Creat source from setup within usersource parameter object.

Definition at line 33 of file TYYYEventSource.cxx.

References Open(), SetArgs(), and SetPort().

TYYYEventSource::TYYYEventSource  
 

Definition at line 52 of file TYYYEventSource.cxx.

TYYYEventSource::~TYYYEventSource   [virtual]
 

Definition at line 59 of file TYYYEventSource.cxx.

References Close().


Member Function Documentation

Int_t TYYYEventSource::Open   [virtual]
 

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

Int_t TYYYEventSource::Close   [virtual]
 

Close the file or connection.

Definition at line 153 of file TYYYEventSource.cxx.

References fbIsOpen, and fxFile.

Referenced by ~TYYYEventSource().

Int_t TYYYEventSource::NextEvent   [virtual]
 

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

void TYYYEventSource::BuildYYYEvent TYYYRawEvent   target
 

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

const Text_t* TYYYEventSource::GetArgs   [inline]
 

Definition at line 69 of file TYYYEventSource.h.

References fxArgs.

void TYYYEventSource::SetArgs const Text_t *    arg [inline]
 

Definition at line 74 of file TYYYEventSource.h.

References fxArgs.

Referenced by TYYYEventSource().

Int_t TYYYEventSource::GetPort   [inline]
 

Definition at line 79 of file TYYYEventSource.h.

References fiPort.

void TYYYEventSource::SetPort Int_t    val [inline]
 

Definition at line 81 of file TYYYEventSource.h.

References fiPort.

Referenced by TYYYEventSource().


Member Data Documentation

Bool_t TYYYEventSource::fbIsOpen [private]
 

Definition at line 85 of file TYYYEventSource.h.

Referenced by Close(), and Open().

TString TYYYEventSource::fxArgs [private]
 

Optional argument string.

Definition at line 88 of file TYYYEventSource.h.

Referenced by GetArgs(), and SetArgs().

Int_t TYYYEventSource::fiPort [private]
 

Optional port number.

Definition at line 91 of file TYYYEventSource.h.

Referenced by GetPort(), and SetPort().

std::ifstream* TYYYEventSource::fxFile [private]
 

file that contains the data in ascii format.

Definition at line 94 of file TYYYEventSource.h.

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

TString TYYYEventSource::fxNextline [private]
 

contains the next line in your file.

Definition at line 97 of file TYYYEventSource.h.

Referenced by BuildYYYEvent(), NextEvent(), and Open().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:57:01 2005 for Go4-v2.10-5 by doxygen1.2.15