#include <TGo4Command.h>
Inheritance diagram for TGo4Command:
Public Member Functions | |
TGo4Command () | |
TGo4Command (const char *name, const char *description, Int_t id) | |
virtual | ~TGo4Command () |
virtual Int_t | ExeCom () |
Do the command action. | |
virtual Int_t | UnExeCom () |
For undo functionality (not yet impl. | |
virtual Int_t | RefuseCom () |
Optional action if command is not allowed (warning message e.g. | |
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) |
Set internals of this command from specification of external remote command (command container). | |
void | SetMode (Go4CommandMode_t m) |
Static Public Member Functions | |
static const char * | GetModeDescription (Go4CommandMode_t mode) |
text description of current execution 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 |
mode value for execution rights of sending task | |
Go4CommandMode_t | fiProtection |
Execute protection of this command. | |
TGo4CommandReceiver * | fxReceiverBase |
Static Protected Attributes | |
static const char * | fgcMODEDESCRIPTION [] |
resolve description of command modes here | |
Private Attributes | |
TString | fxDescription |
TString | fxReceiverName |
TString | fxTaskName |
Definition at line 38 of file TGo4Command.h.
|
Definition at line 44 of file TGo4Command.cxx. References fbIsEnabled, fbIsExclusive, fbIsLocal, fbIsSynchron, fiCommandID, fiMode, fiProtection, fiVersion, kGo4ComModeObserver, kGo4ComModeRefused, SetDescription(), SetReceiverName(), SetTaskName(), and TRACE. |
|
Definition at line 27 of file TGo4Command.cxx. References fbIsEnabled, fbIsExclusive, fbIsLocal, fbIsSynchron, fiCommandID, fiMode, fiProtection, fiVersion, kGo4ComModeObserver, kGo4ComModeRefused, SetDescription(), SetReceiverName(), SetTaskName(), and TRACE. |
|
Definition at line 60 of file TGo4Command.cxx. References TRACE. |
|
|
For undo functionality (not yet impl. ) Definition at line 130 of file TGo4Command.cxx. References TRACE. |
|
Optional action if command is not allowed (warning message e.g. ) Reimplemented in TGo4AnalysisCommand, and TGo4TaskHandlerCommand. Definition at line 136 of file TGo4Command.cxx. References GetMode(), GetModeDescription(), and TGo4Log::Warn(). Referenced by TGo4TaskHandlerCommand::RefuseCom(), and TGo4AnalysisCommand::RefuseCom(). |
|
Definition at line 143 of file TGo4Command.cxx. |
|
Definition at line 76 of file TGo4Command.cxx. References fbIsEnabled, and TRACE. |
|
Definition at line 82 of file TGo4Command.cxx. References fbIsExclusive, and TRACE. |
|
Definition at line 163 of file TGo4Command.cxx. References fbIsLocal. |
|
Definition at line 71 of file TGo4Command.cxx. References TRACE. |
|
Definition at line 65 of file TGo4Command.cxx. References fiCommandID, and TRACE. Referenced by TGo4LocalCommandRunnable::Run(), and TGo4AnalysisMainRunnable::Run(). |
|
Definition at line 157 of file TGo4Command.cxx. References fbIsSynchron, and TRACE. |
|
Definition at line 88 of file TGo4Command.cxx. References fxReceiverName, and TRACE. Referenced by TGo4CommandInvoker::Invoke(). |
|
|
Definition at line 100 of file TGo4Command.cxx. References fxTaskName, and TRACE. Referenced by TGo4ComGetObjectStatus::ExeCom(), TGo4ComGetNamesList::ExeCom(), TGo4ComGetEnvelope::ExeCom(), TGo4ComGetCurrentEvent::ExeCom(), TGo4ComGetAnalysisStatus::ExeCom(), TGo4CommandInvoker::ExecuteFromRemote(), TGo4TaskHandlerCommand::RefuseCom(), and TGo4AnalysisCommand::RefuseCom(). |
|
Definition at line 106 of file TGo4Command.cxx. References fxTaskName, and TRACE. Referenced by TGo4CommandInvoker::ExecuteFromRemote(), TGo4Task::NextCommand(), TGo4ServerTask::NextCommand(), and TGo4Command(). |
|
Definition at line 117 of file TGo4Command.cxx. References fxDescription, and TRACE. Referenced by ExeCom(), Log(), and TGo4CommandProtoList::ShowCommands(). |
|
|
Definition at line 169 of file TGo4Command.cxx. References fxReceiverBase, and TRACE. Referenced by TGo4CommandInvoker::Invoke(). |
|
Definition at line 81 of file TGo4Command.h. References fiProtection. |
|
Definition at line 82 of file TGo4Command.h. References fiMode. Referenced by TGo4CommandInvoker::ExecuteFromRemote(), TGo4TaskHandlerCommand::RefuseCom(), RefuseCom(), and TGo4AnalysisCommand::RefuseCom(). |
|
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 183 of file TGo4Command.cxx. Referenced by TGo4CommandProtoList::MakeCommand(). |
|
Definition at line 89 of file TGo4Command.h. References fiMode. Referenced by TGo4CommandInvoker::ExecuteFromRemote(), TGo4Task::NextCommand(), and TGo4ServerTask::NextCommand(). |
|
text description of current execution mode
Definition at line 176 of file TGo4Command.cxx. References fgcMODEDESCRIPTION. Referenced by TGo4TaskManager::AddClient(), TGo4AnalysisProxy::ReceiveStatus(), TGo4TaskHandlerCommand::RefuseCom(), RefuseCom(), and TGo4AnalysisCommand::RefuseCom(). |
|
|
Definition at line 96 of file TGo4Command.h. Referenced by TGo4RemoteCommand::InitPars(), IsEnabled(), TGo4AnalysisCommand::TGo4AnalysisCommand(), TGo4Command(), TGo4ExampleCommand::TGo4ExampleCommand(), and TGo4TaskHandlerCommand::TGo4TaskHandlerCommand(). |
|
Definition at line 97 of file TGo4Command.h. Referenced by TGo4RemoteCommand::InitPars(), IsExclusive(), and TGo4Command(). |
|
|
Definition at line 99 of file TGo4Command.h. Referenced by TGo4RemoteCommand::InitPars(), IsLocal(), TGo4ComDisconnectSlave::TGo4ComDisconnectSlave(), TGo4Command(), TGo4ComMasterQuit::TGo4ComMasterQuit(), TGo4ComRemoveClient::TGo4ComRemoveClient(), and TGo4ComServerQuit::TGo4ComServerQuit(). |
|
Definition at line 101 of file TGo4Command.h. Referenced by GetCommandID(), TGo4RemoteCommand::InitPars(), TGo4Command(), and TGo4TaskHandlerCommand::TGo4TaskHandlerCommand(). |
|
Definition at line 102 of file TGo4Command.h. Referenced by TGo4RemoteCommand::InitPars(), and TGo4Command(). |
|
mode value for execution rights of sending task
Definition at line 105 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 108 of file TGo4Command.h. Referenced by GetProtection(), SetProtection(), and TGo4Command(). |
|
Initial value: {"NOMODE","Observer","Controller","Administrator"}
Definition at line 23 of file TGo4Command.cxx. Referenced by GetModeDescription(). |
|
Definition at line 117 of file TGo4Command.h. Referenced by SetDescription(), and What(). |
|
Definition at line 118 of file TGo4Command.h. Referenced by GetReceiverName(), and SetReceiverName(). |
|
Definition at line 119 of file TGo4Command.h. Referenced by GetTaskName(), and SetTaskName(). |
|