v2.10-0 (21000JUN2005)

Go4ExampleUserSource
Class TYYYEventSource


class TYYYEventSource
derived from TGo4EventSource


Field Summary
 private Bool_tfbIsOpen
           
 private Int_tfiPort
          Optional port number
 private TStringfxArgs
          Optional argument string
 private std::ifstream*fxFile
          file that contains the data in ascii format.
 private TStringfxNextline
          contains the next line in your file

Fields inherited from interface Go4Event.TGo4EventSource
fgiTIMEOUTDEFAULT, fguTXTLEN

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TYYYEventSource(const Text_t* name, const Text_t* args, Int_t port)
          Create source specifying values directly
TYYYEventSource(TGo4UserSourceParameter* par)
          Creat source from setup within usersource parameter object
TYYYEventSource()
           

Destructor Summary
 virtual synchronized ~TYYYEventSource()
           

Method Summary
 voidBuildYYYEvent(TYYYRawEvent* target)
          This methods actually fills the target event class which is passed as pointer.
 virtual Int_tClose()
          Close the file or connection.
 const const Text_t*GetArgs()
           
 Int_tGetPort()
           
 virtual Int_tNextEvent()
          Requests the next event from user event source.
 virtual Int_tOpen()
          Open the file or connection.
 voidSetArgs(const Text_t* arg)
           
 voidSetPort(Int_t val)
           

Methods inherited from interface Go4Event.TGo4EventSource
Clear, GetCreateStatus, GetErrMess, GetEventStatus, SetCreateStatus, SetErrMess, SetEventStatus, ThrowError

Methods inherited from class TNamed
operator=, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Print, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Field Detail

fbIsOpen

private Bool_t fbIsOpen

fiPort

private Int_t fiPort
Optional port number

fxArgs

private TString fxArgs
Optional argument string

fxFile

private std::ifstream* fxFile
file that contains the data in ascii format.

fxNextline

private TString fxNextline
contains the next line in your file
Constructor Detail

TYYYEventSource

public TYYYEventSource(const Text_t* name, const Text_t* args, Int_t port)
Create source specifying values directly

TYYYEventSource

public TYYYEventSource(TGo4UserSourceParameter* par)
Creat source from setup within usersource parameter object

TYYYEventSource

public TYYYEventSource()
Method Detail

~TYYYEventSource

public virtual synchronized ~TYYYEventSource()
Method Detail

BuildYYYEvent

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

Close

public virtual Int_t Close()
Close the file or connection.

GetArgs

public const const Text_t* GetArgs()

GetPort

public Int_t GetPort()

NextEvent

public virtual Int_t NextEvent()
Requests the next event from user event source.

Open

public virtual Int_t Open()
Open the file or connection.

SetArgs

public void SetArgs(const Text_t* arg)

SetPort

public void SetPort(Int_t val)

Note Links

to Note Note1

to Note Note2


J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005