GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4AnalysisCommand.cxx
Go to the documentation of this file.
1 // $Id: TGo4AnalysisCommand.cxx 1001 2013-07-25 15:10:31Z linev $
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 für 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 
42 
44 {
45  GO4TRACE((12,"TGo4AnalysisCommand::~TGo4AnalysisCommand() dtor",__LINE__, __FILE__));
46 }
47 
48 
50  :TGo4Command(right)
51 {
52  GO4TRACE((12,"TGo4AnalysisCommand::TGo4AnalysisCommand() copy constructor",__LINE__, __FILE__));
53  //fxReceiver=right.fxReceiver;
54 }
55 
57 {
59  if(cli!=0)
60  cli->SendStatusMessage(2,kTRUE, TString::Format(
61  "%s::Command %s from GUI %s not allowed for %s (mode %d)",
63  else
65  return 0;
66 }
void SetReceiverName(const char *)
Definition: TGo4Command.cxx:92
virtual void SendStatusMessage(Int_t level, Bool_t printout, const TString &text)
TGo4CommandReceiver * fxReceiverBase
Definition: TGo4Command.h:117
const char * GetTaskName() const
Definition: TGo4Command.cxx:98
Bool_t fbIsSynchron
Definition: TGo4Command.h:93
#define GO4TRACE(X)
Definition: TGo4Log.h:26
Bool_t fbIsEnabled
Definition: TGo4Command.h:91
Go4CommandMode_t GetMode()
Definition: TGo4Command.h:77
static const char * GetModeDescription(Go4CommandMode_t mode)
virtual Int_t RefuseCom()