21 {
"NOMODE",
"Observer",
"Controller",
"Administrator"};
25 TNamed(name,
"This is a TGo4Command")
27 GO4TRACE((12,
"TGo4Command::TGo4Command(const char *name, const char *description, Int_t id)", __LINE__, __FILE__));
44 GO4TRACE((12,
"TGo4Command::TGo4Command()", __LINE__, __FILE__));
61 GO4TRACE((12,
"TGo4Command::~TGo4Command()", __LINE__, __FILE__));
66 GO4TRACE((10,
"Int_t TGo4Command::GetCommandID() const ", __LINE__, __FILE__));
72 GO4TRACE((10,
"void TGo4Command::Help()", __LINE__, __FILE__));
77 GO4TRACE((10,
"Bool_t TGo4Command::IsEnabled() const", __LINE__, __FILE__));
83 GO4TRACE((10,
"Bool_t TGo4Command::IsExclusive() const", __LINE__, __FILE__));
89 GO4TRACE((10,
"const char *TGo4Command::GetReceiverName()", __LINE__, __FILE__));
95 GO4TRACE((10,
"void TGo4Command::SetReceiverName(const char *)", __LINE__, __FILE__));
101 GO4TRACE((10,
"const char *TGo4Command::GetTaskName()", __LINE__, __FILE__));
107 GO4TRACE((10,
"void TGo4Command::SetTaskName(const char *)", __LINE__, __FILE__));
113 GO4TRACE((10,
"void TGo4Command::SetDescription(const char *)", __LINE__, __FILE__));
119 GO4TRACE((10,
"const char *TGo4Command::What()", __LINE__, __FILE__));
125 GO4TRACE((10,
"Int_t TGo4Command::ExeCom()", __LINE__, __FILE__));
126 std::cout <<
What() << std::endl;
139 GO4TRACE((10,
"Bool_t TGo4Command::Log(Int_t mode)", __LINE__, __FILE__));
142 std::cout <<
What() << std::endl;
152 GO4TRACE((10,
"Bool_t TGo4Command::IsSynchron() const", __LINE__, __FILE__));
164 GO4TRACE((12,
"void TGo4Command::SetReceiver(TGo4CommandReceiver *)", __LINE__, __FILE__));
171 if(mode<0 || mode>3)
return nullptr;
Go4CommandMode_t
These values define command execution rights.
static const char * GetModeDescription(Go4CommandMode_t mode)
text description of current execution mode
virtual Bool_t Log(Int_t mode=0)
virtual Int_t RefuseCom()
Optional action if command is not allowed (warning message e.g.)
const char * What() const
TGo4CommandReceiver * fxReceiverBase
virtual void Set(TGo4RemoteCommand *remcon)
Set internals of this command from specification of external remote command (command container).
Bool_t IsExclusive() const
Bool_t IsSynchron() const
void SetDescription(const char *)
static const char * fgcMODEDESCRIPTION[]
resolve description of command modes here
virtual Int_t ExeCom()
Do the command action.
void SetReceiverName(const char *)
virtual void SetReceiver(TGo4CommandReceiver *rec)
Go4CommandMode_t fiProtection
Execute protection of this command.
const char * GetTaskName() const
Go4CommandMode_t GetMode() const
Go4CommandMode_t fiMode
mode value for execution rights of sending task
void SetTaskName(const char *)
const char * GetReceiverName() const
Int_t GetCommandID() const
static void Warn(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 2.
This command is a container for commands to be send from master to slave via inter-process transport.