Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes

TGo4Command Class Reference

#include <TGo4Command.h>

Inheritance diagram for TGo4Command:
TGo4AnalysisCommand TGo4ExampleCommand TGo4RemoteCommand TGo4TaskHandlerCommand TGo4AnalysisObjectCommand TGo4ComAddTreeHistogram TGo4ComAutosave TGo4ComCloseAnalysis TGo4ComGetAnalysisStatus TGo4ComGetNamesList TGo4ComInitAnalysis TGo4ComLoadAnalysisStatus TGo4ComPrintConditions TGo4ComPrintDynList TGo4ComPrintHistograms TGo4ComSaveAnalysisStatus TGo4ComSetAnalysisStatus TGo4ComAction1 TGo4ComAction2 TGo4ComDisconnectSlave TGo4ComExecLine TGo4ComMasterQuit TGo4ComQuit TGo4ComRemoveClient TGo4ComServerQuit TGo4ComStart TGo4ComStop

List of all members.

Public Member Functions

 TGo4Command ()
 TGo4Command (const char *name, const char *description, Int_t id)
virtual ~TGo4Command ()
virtual Int_t ExeCom ()
virtual Int_t RefuseCom ()
virtual Bool_t Log (Int_t mode=0)
Bool_t IsEnabled () const
Bool_t IsExclusive () const
Bool_t IsLocal () const
virtual void Help ()
Int_t GetCommandID () const
Bool_t IsSynchron () const
const char * GetReceiverName () const
void SetReceiverName (const char *)
const char * GetTaskName () const
void SetTaskName (const char *)
const char * What () const
void SetDescription (const char *)
virtual void SetReceiver (TGo4CommandReceiver *rec)
Go4CommandMode_t GetProtection ()
Go4CommandMode_t GetMode ()
virtual void Set (TGo4RemoteCommand *remcon)
void SetMode (Go4CommandMode_t m)

Static Public Member Functions

static const char * GetModeDescription (Go4CommandMode_t mode)

Protected Member Functions

void SetProtection (Go4CommandMode_t m)

Protected Attributes

Bool_t fbIsEnabled
Bool_t fbIsExclusive
Bool_t fbIsSynchron
Bool_t fbIsLocal
Int_t fiCommandID
Int_t fiVersion
Go4CommandMode_t fiMode
Go4CommandMode_t fiProtection
TGo4CommandReceiverfxReceiverBase

Static Protected Attributes

static const char * fgcMODEDESCRIPTION []

Private Attributes

TString fxDescription
TString fxReceiverName
TString fxTaskName

Detailed Description

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

Definition at line 36 of file TGo4Command.h.


Constructor & Destructor Documentation

TGo4Command::TGo4Command (  ) 
TGo4Command::TGo4Command ( const char *  name,
const char *  description,
Int_t  id 
)
TGo4Command::~TGo4Command (  )  [virtual]

Definition at line 58 of file TGo4Command.cxx.

References GO4TRACE.


Member Function Documentation

Int_t TGo4Command::GetCommandID (  )  const

Definition at line 63 of file TGo4Command.cxx.

References fiCommandID, and GO4TRACE.

Referenced by TGo4LocalCommandRunnable::Run(), and TGo4AnalysisMainRunnable::Run().

const char * TGo4Command::GetModeDescription ( Go4CommandMode_t  mode  )  [static]
Go4CommandMode_t TGo4Command::GetProtection (  )  [inline]

Definition at line 76 of file TGo4Command.h.

References fiProtection.

Referenced by TGo4CommandInvoker::Invoke().

const char * TGo4Command::GetReceiverName (  )  const

Definition at line 86 of file TGo4Command.cxx.

References fxReceiverName, and GO4TRACE.

Referenced by TGo4CommandInvoker::Invoke().

void TGo4Command::Help (  )  [virtual]

Definition at line 69 of file TGo4Command.cxx.

References GO4TRACE.

Bool_t TGo4Command::IsEnabled (  )  const

Definition at line 74 of file TGo4Command.cxx.

References fbIsEnabled, and GO4TRACE.

Bool_t TGo4Command::IsExclusive (  )  const

Definition at line 80 of file TGo4Command.cxx.

References fbIsExclusive, and GO4TRACE.

Bool_t TGo4Command::IsLocal (  )  const

Definition at line 154 of file TGo4Command.cxx.

References fbIsLocal.

Referenced by TGo4Task::SubmitCommand().

Bool_t TGo4Command::IsSynchron (  )  const

Definition at line 148 of file TGo4Command.cxx.

References fbIsSynchron, and GO4TRACE.

Bool_t TGo4Command::Log ( Int_t  mode = 0  )  [virtual]

Definition at line 135 of file TGo4Command.cxx.

References GO4TRACE, and What().

Int_t TGo4Command::RefuseCom (  )  [virtual]

Optional action if command is not allowed (warning message e.g.)

Reimplemented in TGo4AnalysisCommand, and TGo4TaskHandlerCommand.

Definition at line 128 of file TGo4Command.cxx.

References GetMode(), GetModeDescription(), and TGo4Log::Warn().

Referenced by TGo4CommandInvoker::Invoke().

void TGo4Command::Set ( TGo4RemoteCommand remcon  )  [virtual]

Set internals of this command from specification of external remote command (command container). Must be overloaded for each specific command!

Reimplemented in TGo4AnalysisObjectCommand, TGo4ComAddTreeHistogram, TGo4ComAutosave, TGo4ComGetCurrentEvent, TGo4ComLoadAnalysisStatus, TGo4ComSaveAnalysisStatus, TGo4ComSetAnalysisStatus, TGo4ComSetObject, TGo4ComSetPrintEvent, and TGo4ComSetProtections.

Definition at line 174 of file TGo4Command.cxx.

Referenced by TGo4CommandProtoList::MakeCommand().

void TGo4Command::SetMode ( Go4CommandMode_t  m  )  [inline]
void TGo4Command::SetReceiver ( TGo4CommandReceiver rec  )  [virtual]

Definition at line 160 of file TGo4Command.cxx.

References fxReceiverBase, and GO4TRACE.

Referenced by TGo4CommandInvoker::Invoke().

void TGo4Command::SetTaskName ( const char *  name  ) 
const char * TGo4Command::What (  )  const

Definition at line 115 of file TGo4Command.cxx.

References fxDescription, and GO4TRACE.

Referenced by ExeCom(), Log(), and TGo4CommandProtoList::ShowCommands().


Member Data Documentation

Bool_t TGo4Command::fbIsExclusive [protected]

Definition at line 92 of file TGo4Command.h.

Referenced by TGo4RemoteCommand::InitPars(), IsExclusive(), and TGo4Command().

const char * TGo4Command::fgcMODEDESCRIPTION [static, protected]
Initial value:
   {"NOMODE","Observer","Controller","Administrator"}

resolve description of command modes here

Definition at line 108 of file TGo4Command.h.

Referenced by GetModeDescription().

mode value for execution rights of sending task

Definition at line 100 of file TGo4Command.h.

Referenced by GetMode(), SetMode(), and TGo4Command().

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

Definition at line 103 of file TGo4Command.h.

Referenced by GetProtection(), SetProtection(), and TGo4Command().

Int_t TGo4Command::fiVersion [protected]

Definition at line 97 of file TGo4Command.h.

Referenced by TGo4RemoteCommand::InitPars(), and TGo4Command().

TString TGo4Command::fxDescription [private]

Definition at line 112 of file TGo4Command.h.

Referenced by SetDescription(), and What().

TString TGo4Command::fxReceiverName [private]

Definition at line 113 of file TGo4Command.h.

Referenced by GetReceiverName(), and SetReceiverName().

TString TGo4Command::fxTaskName [private]

Definition at line 114 of file TGo4Command.h.

Referenced by GetTaskName(), and SetTaskName().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines