v2.10-0 (21000JUN2005)

Go4CommandsBase
Class TGo4Command

Direct Known Subclasses:
TGo4AnalysisCommand, TGo4TaskHandlerCommand, TGo4ExampleCommand

class TGo4Command
derived from TNamed

This is the Go4 Abstract Command Class; part of the Base command pattern


Field Summary
 protected Bool_tfbIsEnabled
           
 protected Bool_tfbIsExclusive
           
 protected Bool_tfbIsLocal
           
 protected Bool_tfbIsSynchron
           
 protected static char * []fgcMODEDESCRIPTION
          resolve description of command modes here
 protected Int_tfiCommandID
           
 protected Go4CommandMode_tfiMode
          mode value for execution rights of sending task
 protected Go4CommandMode_tfiProtection
          Execute protection of this command.
 protected Int_tfiVersion
           
 private TStringfxDescription
           
 protected TGo4CommandReceiver*fxReceiverBase
           
 private TStringfxReceiverName
           
 private TStringfxTaskName
           

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4Command()
           
TGo4Command(const char * name, const char * description, Int_t id)
           

Destructor Summary
 virtual synchronized ~TGo4Command()
           

Method Summary
 virtual Int_tExeCom()
          Do the command action
 const Int_tGetCommandID()
           
 Go4CommandMode_tGetMode()
           
 const static const char *GetModeDescription(Go4CommandMode_t mode)
          text description of current execution mode
 Go4CommandMode_tGetProtection()
           
 const const char *GetReceiverName()
           
 const const char *GetTaskName()
           
 virtual voidHelp()
           
 const Bool_tIsEnabled()
           
 const Bool_tIsExclusive()
           
 const Bool_tIsLocal()
           
 const Bool_tIsSynchron()
           
 virtual Bool_tLog(Int_t mode)
           
 virtual Int_tRefuseCom()
          Optional action if command is not allowed (warning message e.g.)
 voidSetDescription(const char * )
           
 voidSetMode(Go4CommandMode_t m)
           
 protected voidSetProtection(Go4CommandMode_t m)
           
 virtual voidSetReceiver(TGo4CommandReceiver* rec)
           
 voidSetReceiverName(const char * )
           
 voidSetTaskName(const char * )
           
 virtual Int_tUnExeCom()
          For undo functionality (not yet impl.)
 const const char *What()
           

Methods inherited from class TNamed
operator=, Clear, 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

fbIsEnabled

protected Bool_t fbIsEnabled

fbIsExclusive

protected Bool_t fbIsExclusive

fbIsLocal

protected Bool_t fbIsLocal

fbIsSynchron

protected Bool_t fbIsSynchron

fgcMODEDESCRIPTION

protected static char * [] fgcMODEDESCRIPTION
resolve description of command modes here

fiCommandID

protected Int_t fiCommandID

fiMode

protected Go4CommandMode_t fiMode
mode value for execution rights of sending task

fiProtection

protected Go4CommandMode_t fiProtection
Execute protection of this command. If Execution mode
is not sufficient, command is not allowed to be executed.

fiVersion

protected Int_t fiVersion

fxDescription

private TString fxDescription

fxReceiverBase

protected TGo4CommandReceiver* fxReceiverBase

fxReceiverName

private TString fxReceiverName

fxTaskName

private TString fxTaskName
Constructor Detail

TGo4Command

public TGo4Command()

TGo4Command

public TGo4Command(const char * name, const char * description, Int_t id)
Method Detail

~TGo4Command

public virtual synchronized ~TGo4Command()
Method Detail

ExeCom

public virtual Int_t ExeCom()
Do the command action

GetCommandID

public const Int_t GetCommandID()

GetMode

public Go4CommandMode_t GetMode()

GetModeDescription

public const static const char * GetModeDescription(Go4CommandMode_t mode)
text description of current execution mode

GetProtection

public Go4CommandMode_t GetProtection()

GetReceiverName

public const const char * GetReceiverName()

GetTaskName

public const const char * GetTaskName()

Help

public virtual void Help()

IsEnabled

public const Bool_t IsEnabled()

IsExclusive

public const Bool_t IsExclusive()

IsLocal

public const Bool_t IsLocal()

IsSynchron

public const Bool_t IsSynchron()

Log

public virtual Bool_t Log(Int_t mode)

RefuseCom

public virtual Int_t RefuseCom()
Optional action if command is not allowed (warning message e.g.)

SetDescription

public void SetDescription(const char * )

SetMode

public void SetMode(Go4CommandMode_t m)

SetProtection

protected void SetProtection(Go4CommandMode_t m)

SetReceiver

public virtual void SetReceiver(TGo4CommandReceiver* rec)

SetReceiverName

public void SetReceiverName(const char * )

SetTaskName

public void SetTaskName(const char * )

UnExeCom

public virtual Int_t UnExeCom()
For undo functionality (not yet impl.)

What

public const const char * What()

Association Links

to Class Go4CommandMode_t

mode value for execution rights of sending task

to Class Go4CommandMode_t

Execute protection of this command. If Execution mode
is not sufficient, command is not allowed to be executed.

to Class TGo4CommandReceiver


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

30-06-2005