GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
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"
17 #include "TGo4AnalysisClientImp.h"
18 
19 TGo4AnalysisCommand::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 
31  TGo4Command()
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 }
void SetReceiverName(const char *)
Definition: TGo4Command.cxx:93
TGo4CommandReceiver * fxReceiverBase
Definition: TGo4Command.h:116
Int_t RefuseCom() override
void SendStatusMessage(Int_t level, Bool_t printout, const TString &text) override
Go4CommandMode_t GetMode() const
Definition: TGo4Command.h:76
const char * GetTaskName() const
Definition: TGo4Command.cxx:99
Bool_t fbIsSynchron
Definition: TGo4Command.h:92
#define GO4TRACE(X)
Definition: TGo4Log.h:25
Bool_t fbIsEnabled
Definition: TGo4Command.h:90
static const char * GetModeDescription(Go4CommandMode_t mode)
virtual Int_t RefuseCom()