GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
TGo4RemoteCommand Class Reference

#include <TGo4RemoteCommand.h>

+ Inheritance diagram for TGo4RemoteCommand:

Public Member Functions

 TGo4RemoteCommand ()
 
 TGo4RemoteCommand (const char *comname)
 
virtual ~TGo4RemoteCommand ()
 
Int_t ExeCom ()
 
void SetAggregate (TObject *ob)
 
TObject * GetAggregate (Bool_t chown=kTRUE)
 
void SetCommandName (const char *txt)
 
const char * GetCommandName () const
 
void SetString (const char *txt, Int_t i)
 
const char * GetString (Int_t i) const
 
void SetValue (Int_t num, Int_t i)
 
Int_t GetValue (Int_t i) const
 
- Public Member Functions inherited from TGo4Command
 TGo4Command ()
 
 TGo4Command (const char *name, const char *description, Int_t id)
 
virtual ~TGo4Command ()
 
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 * Get_fgxREMCOMEMPTYSTRING ()
 
- Static Public Member Functions inherited from TGo4Command
static const char * GetModeDescription (Go4CommandMode_t mode)
 

Private Member Functions

void InitPars ()
 

Private Attributes

TString fxCommandName
 
TString fxParameter [__REMCOMPARS__]
 
Int_t fiValue [__REMCOMPARS__]
 
TObject * fxAggregate
 

Static Private Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from TGo4Command
void SetProtection (Go4CommandMode_t m)
 
- Protected Attributes inherited from TGo4Command
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 inherited from TGo4Command
static const char * fgcMODEDESCRIPTION []
 

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 29 of file TGo4RemoteCommand.h.

Constructor & Destructor Documentation

TGo4RemoteCommand::TGo4RemoteCommand ( )

Definition at line 21 of file TGo4RemoteCommand.cxx.

References InitPars().

TGo4RemoteCommand::TGo4RemoteCommand ( const char *  comname)

Definition at line 29 of file TGo4RemoteCommand.cxx.

References InitPars().

TGo4RemoteCommand::~TGo4RemoteCommand ( )
virtual

Definition at line 54 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 59 of file TGo4RemoteCommand.cxx.

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

const char * TGo4RemoteCommand::Get_fgxREMCOMEMPTYSTRING ( )
static

Definition at line 101 of file TGo4RemoteCommand.cxx.

References fgxREMCOMEMPTYSTRING.

Referenced by TGo4AnalysisObjectCommand::Set().

TObject * TGo4RemoteCommand::GetAggregate ( Bool_t  chown = kTRUE)

Definition at line 74 of file TGo4RemoteCommand.cxx.

References fxAggregate.

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

const char* TGo4RemoteCommand::GetCommandName ( ) const
inline

Definition at line 55 of file TGo4RemoteCommand.h.

References fxCommandName.

Referenced by TGo4CommandProtoList::MakeCommand().

const char * TGo4RemoteCommand::GetString ( Int_t  i) const
Int_t TGo4RemoteCommand::GetValue ( Int_t  i) const
void TGo4RemoteCommand::InitPars ( )
private
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 68 of file TGo4RemoteCommand.cxx.

References fxAggregate.

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

void TGo4RemoteCommand::SetCommandName ( const char *  txt)
inline

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

Definition at line 53 of file TGo4RemoteCommand.h.

References fxCommandName.

void TGo4RemoteCommand::SetString ( const char *  txt,
Int_t  i 
)
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 91 of file TGo4RemoteCommand.cxx.

References __REMCOMPARS__, and fiValue.

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

Member Data Documentation

const char * TGo4RemoteCommand::fgxREMCOMEMPTYSTRING ="--NOSTRING--"
staticprivate

Definition at line 92 of file TGo4RemoteCommand.h.

Referenced by Get_fgxREMCOMEMPTYSTRING(), and InitPars().

Int_t TGo4RemoteCommand::fiValue[__REMCOMPARS__]
private

Numerical parameters for command, otpional

Definition at line 86 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 90 of file TGo4RemoteCommand.h.

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

TString TGo4RemoteCommand::fxCommandName
private

Name of command to be executed

Definition at line 79 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 83 of file TGo4RemoteCommand.h.

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


The documentation for this class was generated from the following files: