00001 // $Id: TGo4RemoteCommand.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4REMOTECOMMAND_H 00015 #define TGO4REMOTECOMMAND_H 00016 00017 #include "TGo4Command.h" 00018 #include "TString.h" 00019 00020 #define __REMCOMPARS__ 5 00021 00029 class TGo4RemoteCommand : public TGo4Command { 00030 00031 public: 00032 00033 TGo4RemoteCommand(); 00034 00035 TGo4RemoteCommand(const char* comname); 00036 00037 virtual ~TGo4RemoteCommand(); 00038 00042 Int_t ExeCom(); 00043 00047 void SetAggregate(TObject* ob); 00048 00049 TObject* GetAggregate(Bool_t chown=kTRUE); 00050 00053 void SetCommandName(const char* txt) { fxCommandName=txt; } 00054 00055 const char* GetCommandName() const { return fxCommandName.Data(); } 00056 00061 void SetString(const char* txt,Int_t i); 00062 00063 const char* GetString(Int_t i) const; 00064 00068 void SetValue(Int_t num, Int_t i); 00069 00070 Int_t GetValue(Int_t i) const; 00071 00072 static const char* Get_fgxREMCOMEMPTYSTRING(); 00073 00074 private: 00075 00076 void InitPars(); 00077 00079 TString fxCommandName; 00080 00083 TString fxParameter[__REMCOMPARS__]; 00084 00086 Int_t fiValue[__REMCOMPARS__]; 00087 00090 TObject* fxAggregate; 00091 00092 static const char* fgxREMCOMEMPTYSTRING; 00093 00094 00095 ClassDef(TGo4RemoteCommand,1) 00096 }; 00097 00098 #endif //TGO4REMOTECOMMAND_H