GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4RemoteCommand.h
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#ifndef TGO4REMOTECOMMAND_H
15#define TGO4REMOTECOMMAND_H
16
17#include "TGo4Command.h"
18#include "TString.h"
19
20#define __REMCOMPARS__ 5
30
31 public:
32
34
35 TGo4RemoteCommand(const char *comname);
36
37 virtual ~TGo4RemoteCommand();
38
42 Int_t ExeCom() override;
43
47 void SetAggregate(TObject *ob);
48
49 TObject *GetAggregate(Bool_t chown = kTRUE);
50
53 void SetCommandName(const char *txt) { fxCommandName = txt; }
54
55 const char *GetCommandName() const { return fxCommandName.Data(); }
56
61 void SetString(const char *txt, Int_t i);
62
63 const char *GetString(Int_t i) const;
64
68 void SetValue(Int_t num, Int_t i);
69
70 Int_t GetValue(Int_t i) const;
71
72 static const char *Get_fgxREMCOMEMPTYSTRING();
73
74 private:
75
76 void InitPars();
77
80
84
87
90 TObject *fxAggregate{nullptr};
91
92 static const char *fgxREMCOMEMPTYSTRING;
93
94 ClassDefOverride(TGo4RemoteCommand,1)
95};
96
97#endif //TGO4REMOTECOMMAND_H
#define __REMCOMPARS__
void SetAggregate(TObject *ob)
Wrap any object ob into this command container.
Int_t ExeCom() override
Remote command will execute on the command invoker at the slave side to create and execute the correc...
TObject * fxAggregate
Optional aggregated parameter object.
static const char * Get_fgxREMCOMEMPTYSTRING()
static const char * fgxREMCOMEMPTYSTRING
TObject * GetAggregate(Bool_t chown=kTRUE)
void SetString(const char *txt, Int_t i)
Specify string parameter txt for index i to be used in executed command.
void SetValue(Int_t num, Int_t i)
Specify integer parameters to be used in executed command.
const char * GetCommandName() const
TString fxParameter[__REMCOMPARS__]
String parameters.
void SetCommandName(const char *txt)
Set Go4 Name of command to be executed on the command receiver side.
Int_t fiValue[__REMCOMPARS__]
Numerical parameters for command, optional.
const char * GetString(Int_t i) const
TString fxCommandName
Name of command to be executed.
Int_t GetValue(Int_t i) const