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