Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4RemoteCommand Class Reference

This command is a container for commands to be send from master to slave via inter-process transport. More...

#include <TGo4RemoteCommand.h>

Inheritance diagram for TGo4RemoteCommand:

TGo4Command List of all members.

Public Member Functions

 TGo4RemoteCommand ()
 TGo4RemoteCommand (const char *comname)
virtual ~TGo4RemoteCommand ()
Int_t ExeCom ()
 Remote command will execute on the command invoker at the slave side to create and execute the correct command from the contained information.
void SetAggregate (TObject *ob)
 Wrap any object ob into this command container.
TObject * GetAggregate (Bool_t chown=kTRUE)
void SetCommandName (const char *txt)
 Set Go4 Name of command to be executed on the command receiver side.
const char * GetCommandName () const
void SetString (const char *txt, Int_t i)
 Specify string parameter txt for index i to be used in executed command.
const char * GetString (Int_t i) const
void SetValue (Int_t num, Int_t i)
 Specify integer parameters to be used in executed command.
Int_t GetValue (Int_t i) const

Static Public Member Functions

static const char * Get_fgxREMCOMEMPTYSTRING ()

Private Member Functions

void InitPars ()

Private Attributes

TString fxCommandName
 Name of command to be executed.
TString fxParameter [__REMCOMPARS__]
 String parameters.
Int_t fiValue [__REMCOMPARS__]
 Numerical parameters for command, otpional.
TObject * fxAggregate
 Optional aggregated parameter object.

Static Private Attributes

static const char * fgxREMCOMEMPTYSTRING = "--NOSTRING--"

Detailed Description

This command is a container for commands to be send from master to slave via inter-process transport.

Master Only has to know this command (Go4CommandsBase package), thus decoupling from Slave libraries

Author:
J. Adamczewski, gsi
Since:
27-Apr-2005

Definition at line 31 of file TGo4RemoteCommand.h.


Constructor & Destructor Documentation

TGo4RemoteCommand::TGo4RemoteCommand  ) 
 

Definition at line 23 of file TGo4RemoteCommand.cxx.

References InitPars().

TGo4RemoteCommand::TGo4RemoteCommand const char *  comname  ) 
 

Definition at line 31 of file TGo4RemoteCommand.cxx.

References InitPars().

TGo4RemoteCommand::~TGo4RemoteCommand  )  [virtual]
 

Definition at line 56 of file TGo4RemoteCommand.cxx.


Member Function Documentation

Int_t TGo4RemoteCommand::ExeCom  )  [virtual]
 

Remote command will execute on the command invoker at the slave side to create and execute the correct command from the contained information.

Reimplemented from TGo4Command.

Definition at line 61 of file TGo4RemoteCommand.cxx.

References TGo4CommandInvoker::ExecuteFromRemote(), fxAggregate, and TGo4Command::fxReceiverBase.

void TGo4RemoteCommand::SetAggregate TObject *  ob  ) 
 

Wrap any object ob into this command container.

May be any parameter, condition, or other status object to be used for command execution.

Definition at line 70 of file TGo4RemoteCommand.cxx.

References fxAggregate.

Referenced by TGo4AnalysisProxy::SubmitAnalysisSettings(), and TGo4AnalysisProxy::UpdateAnalysisObject().

TObject * TGo4RemoteCommand::GetAggregate Bool_t  chown = kTRUE  ) 
 

Definition at line 76 of file TGo4RemoteCommand.cxx.

References fxAggregate.

Referenced by TGo4ComSetObject::Set(), and TGo4ComSetAnalysisStatus::Set().

void TGo4RemoteCommand::SetCommandName const char *  txt  )  [inline]
 

Set Go4 Name of command to be executed on the command receiver side.

Definition at line 55 of file TGo4RemoteCommand.h.

References fxCommandName.

const char* TGo4RemoteCommand::GetCommandName  )  const [inline]
 

Definition at line 57 of file TGo4RemoteCommand.h.

References fxCommandName.

Referenced by TGo4CommandProtoList::MakeCommand().

void TGo4RemoteCommand::SetString const char *  txt,
Int_t  i
 

Specify string parameter txt for index i to be used in executed command.

Index 0 is usually reserved for object name to be modified. higher indices are used variably depending on command

Definition at line 83 of file TGo4RemoteCommand.cxx.

References __REMCOMPARS__, and fxParameter.

Referenced by TGo4AnalysisProxy::ChageObjectProtection(), TGo4AnalysisProxy::ClearAnalysisObject(), TGo4AnalysisProxy::LoadConfigFile(), TGo4AnalysisProxy::PrintDynListEntry(), TGo4AnalysisProxy::RemotePrintEvent(), TGo4AnalysisProxy::RemoteTreeDraw(), TGo4AnalysisProxy::RemoveObjectFromAnalysis(), TGo4AnalysisProxy::RequestEventStatus(), TGo4AnalysisProxy::SaveConfigFile(), TGo4AnalysisProxy::SubmitProxy(), TGo4AnalysisProxy::UpdateAnalysisObject(), and TGo4AnalysisProxy::WriteAutoSave().

const char * TGo4RemoteCommand::GetString Int_t  i  )  const
 

Definition at line 88 of file TGo4RemoteCommand.cxx.

References __REMCOMPARS__, and fxParameter.

Referenced by TGo4ComSetProtections::Set(), TGo4ComSaveAnalysisStatus::Set(), TGo4ComLoadAnalysisStatus::Set(), TGo4ComAutosave::Set(), TGo4ComAddTreeHistogram::Set(), and TGo4AnalysisObjectCommand::Set().

void TGo4RemoteCommand::SetValue Int_t  num,
Int_t  i
 

Specify integer parameters to be used in executed command.

Indices are used depending on command. To be applied also for boolean values!

Definition at line 93 of file TGo4RemoteCommand.cxx.

References __REMCOMPARS__, and fiValue.

Referenced by TGo4AnalysisProxy::RemotePrintEvent(), TGo4AnalysisProxy::RequestEventStatus(), TGo4AnalysisProxy::SubmitProxy(), and TGo4AnalysisProxy::WriteAutoSave().

Int_t TGo4RemoteCommand::GetValue Int_t  i  )  const
 

Definition at line 98 of file TGo4RemoteCommand.cxx.

References __REMCOMPARS__, and fiValue.

Referenced by TGo4ComSetPrintEvent::Set(), TGo4ComGetCurrentEvent::Set(), and TGo4ComAutosave::Set().

const char * TGo4RemoteCommand::Get_fgxREMCOMEMPTYSTRING  )  [static]
 

Definition at line 103 of file TGo4RemoteCommand.cxx.

References fgxREMCOMEMPTYSTRING.

Referenced by TGo4AnalysisObjectCommand::Set().

void TGo4RemoteCommand::InitPars  )  [private]
 

Definition at line 39 of file TGo4RemoteCommand.cxx.

References __REMCOMPARS__, TGo4Command::fbIsEnabled, TGo4Command::fbIsExclusive, TGo4Command::fbIsLocal, TGo4Command::fbIsSynchron, fgxREMCOMEMPTYSTRING, TGo4Command::fiCommandID, fiValue, TGo4Command::fiVersion, fxParameter, TGo4Command::SetDescription(), and TGo4Command::SetReceiverName().

Referenced by TGo4RemoteCommand().


Member Data Documentation

TString TGo4RemoteCommand::fxCommandName [private]
 

Name of command to be executed.

Definition at line 81 of file TGo4RemoteCommand.h.

Referenced by GetCommandName(), and SetCommandName().

TString TGo4RemoteCommand::fxParameter[__REMCOMPARS__] [private]
 

String parameters.

May contain object name, folder name, passwords, etc..

Definition at line 85 of file TGo4RemoteCommand.h.

Referenced by GetString(), InitPars(), and SetString().

Int_t TGo4RemoteCommand::fiValue[__REMCOMPARS__] [private]
 

Numerical parameters for command, otpional.

Definition at line 88 of file TGo4RemoteCommand.h.

Referenced by GetValue(), InitPars(), and SetValue().

TObject* TGo4RemoteCommand::fxAggregate [private]
 

Optional aggregated parameter object.

May be a condition, status, canvas etc. to apply on slave node.

Definition at line 92 of file TGo4RemoteCommand.h.

Referenced by ExeCom(), GetAggregate(), and SetAggregate().

const char * TGo4RemoteCommand::fgxREMCOMEMPTYSTRING = "--NOSTRING--" [static, private]
 

Definition at line 21 of file TGo4RemoteCommand.cxx.

Referenced by Get_fgxREMCOMEMPTYSTRING(), and InitPars().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:01:11 2008 for Go4-v3.04-1 by  doxygen 1.4.2