GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4ComAction2.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 "TGo4ComAction2.h"
15
16#include "TGo4Log.h"
18
20{
21 GO4TRACE((12,"TGo4ComAction2::ExeCom() dtor",__LINE__, __FILE__));
22
23 if (fxReceiverBase) {
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}
#define GO4TRACE(X)
Definition TGo4Log.h:25
virtual ~TGo4ComAction2()
Int_t ExeCom() override
Do the command action.
TGo4CommandReceiver * fxReceiverBase
void SetDescription(const char *)
Example application class; this class may also run as standalone application without the threaded cli...
static void Debug(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 0.
Definition TGo4Log.cxx:281