GSI Object Oriented Online Offline (Go4)
GO4-6.4.0
Loading...
Searching...
No Matches
Go4TaskHandlerExample
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
"
17
#include "
TGo4ExampleApplication.h
"
18
19
Int_t
TGo4ComAction2::ExeCom
()
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
36
TGo4ComAction2::~TGo4ComAction2
()
37
{
38
GO4TRACE
((12,
"TGo4ComAction2::~TGo4ComAction2() dtor"
,__LINE__, __FILE__));
39
}
40
41
TGo4ComAction2::TGo4ComAction2
() :
TGo4ExampleCommand
()
42
{
43
GO4TRACE
((12,
"TGo4ComAction2::TGo4ComAction2() ctor"
,__LINE__, __FILE__));
44
SetName(
"EXAction2"
);
45
SetDescription
(
"executes example application action2 method"
);
46
}
TGo4ComAction2.h
TGo4ExampleApplication.h
TGo4Log.h
GO4TRACE
#define GO4TRACE(X)
Definition
TGo4Log.h:25
TGo4ComAction2::~TGo4ComAction2
virtual ~TGo4ComAction2()
Definition
TGo4ComAction2.cxx:36
TGo4ComAction2::ExeCom
Int_t ExeCom() override
Do the command action.
Definition
TGo4ComAction2.cxx:19
TGo4ComAction2::TGo4ComAction2
TGo4ComAction2()
Definition
TGo4ComAction2.cxx:41
TGo4Command::fxReceiverBase
TGo4CommandReceiver * fxReceiverBase
Definition
TGo4Command.h:116
TGo4Command::SetDescription
void SetDescription(const char *)
Definition
TGo4Command.cxx:111
TGo4ExampleApplication
Example application class; this class may also run as standalone application without the threaded cli...
Definition
TGo4ExampleApplication.h:27
TGo4ExampleCommand::TGo4ExampleCommand
TGo4ExampleCommand()
Definition
TGo4ExampleCommand.cxx:18
TGo4Log::Debug
static void Debug(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 0.
Definition
TGo4Log.cxx:281
Generated by
1.13.2