GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4ComAction1.cxx
Go to the documentation of this file.
1 // $Id: TGo4ComAction1.cxx 1036 2013-11-06 10:21:12Z 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 "TGo4ComAction1.h"
15 
16 #include "TGo4Log.h"
17 #include "TGo4ExampleApplication.h"
18 
20 {
21  GO4TRACE((12,"TGo4ComAction1::ExeCom() dtor",__LINE__, __FILE__));
22 
23  if (fxReceiverBase!=0) {
24  GO4TRACE((11,"TGo4ComAction1::ExeCom() - found valid receiver",__LINE__, __FILE__));
25  TGo4Log::Debug(" !!! ComAction1 ''%s'': Action1 requested ", GetName());
26  ((TGo4ExampleApplication*) fxReceiverBase)->CommandAction1();
27  } else {
28  GO4TRACE((11,"TGo4ComAction1::ExeCom() - no receiver specified ERROR!",__LINE__, __FILE__));
29  TGo4Log::Debug(" !!! ComAction1 ''%s'': NO RECEIVER ERROR!!!",GetName());
30  return 1;
31  }
32 
33  return -1;
34 }
36 {
37  GO4TRACE((12,"TGo4ComAction1::~TGo4ComAction1() dtor",__LINE__, __FILE__));
38 }
39 
42 {
43  GO4TRACE((12,"TGo4ComAction1::TGo4ComAction1() ctor",__LINE__, __FILE__));
44  SetName("EXAction1");
45  SetDescription("executes example application action1 method");
46 }
TGo4CommandReceiver * fxReceiverBase
Definition: TGo4Command.h:117
virtual Int_t ExeCom()
virtual ~TGo4ComAction1()
const char * GetName() const
void SetDescription(const char *)
#define GO4TRACE(X)
Definition: TGo4Log.h:26
static void Debug(const char *text,...)
Definition: TGo4Log.cxx:270