GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4AnalysisCommand.cxx
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
14#include "TGo4AnalysisCommand.h"
15
16#include "TGo4Log.h"
18
19TGo4AnalysisCommand::TGo4AnalysisCommand(const char *name, const char *desc) :
20 TGo4Command(name, desc, 7)
21{
22 GO4TRACE((12,"TGo4AnalysisCommand::TGo4AnalysisCommand(const char *, const char *) ctor",__LINE__, __FILE__));
23
24 fbIsEnabled = kTRUE;
25 fbIsSynchron = kTRUE;
26 SetReceiverName("AnalysisClient"); // sets the receiver name checked by command invoker
27 // receiver name neednt be class name!
28}
29
32
33{
34 GO4TRACE((12,"TGo4AnalysisCommand::TGo4AnalysisCommand() ctor",__LINE__, __FILE__));
35
36 fbIsEnabled = kTRUE;
37 fbIsSynchron = kTRUE;
38 SetReceiverName("AnalysisClient"); // sets the receiver name checked by command invoker
39 // receiver name neednt be class name!
40}
41
43{
45 if(cli)
46 cli->SendStatusMessage(2,kTRUE, TString::Format(
47 "%s::Command %s from GUI %s not allowed for %s (mode %d)",
49 else
51 return 0;
52}
#define GO4TRACE(X)
Definition TGo4Log.h:25
void SendStatusMessage(Int_t level, Bool_t printout, const TString &text) override
Send message to gui.
Int_t RefuseCom() override
Optional action if command is not allowed (warning message e.g.)
static const char * GetModeDescription(Go4CommandMode_t mode)
text description of current execution mode
virtual Int_t RefuseCom()
Optional action if command is not allowed (warning message e.g.)
TGo4CommandReceiver * fxReceiverBase
Bool_t fbIsSynchron
Definition TGo4Command.h:92
Bool_t fbIsEnabled
Definition TGo4Command.h:90
void SetReceiverName(const char *)
const char * GetTaskName() const
Go4CommandMode_t GetMode() const
Definition TGo4Command.h:76