00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #ifndef TGO4REMOTECOMMAND_H 00017 #define TGO4REMOTECOMMAND_H 00018 00019 #include "TGo4Command.h" 00020 #include "TString.h" 00021 00022 #define __REMCOMPARS__ 5 00023 00031 class TGo4RemoteCommand : public TGo4Command { 00032 00033 public: 00034 00035 TGo4RemoteCommand(); 00036 00037 TGo4RemoteCommand(const char* comname); 00038 00039 virtual ~TGo4RemoteCommand(); 00040 00044 Int_t ExeCom(); 00045 00049 void SetAggregate(TObject* ob); 00050 00051 TObject* GetAggregate(Bool_t chown=kTRUE); 00052 00055 void SetCommandName(const char* txt) { fxCommandName=txt; } 00056 00057 const char* GetCommandName() const { return fxCommandName.Data(); } 00058 00063 void SetString(const char* txt,Int_t i); 00064 00065 const char* GetString(Int_t i) const; 00066 00070 void SetValue(Int_t num, Int_t i); 00071 00072 Int_t GetValue(Int_t i) const; 00073 00074 static const char* Get_fgxREMCOMEMPTYSTRING(); 00075 00076 private: 00077 00078 void InitPars(); 00079 00081 TString fxCommandName; 00082 00085 TString fxParameter[__REMCOMPARS__]; 00086 00088 Int_t fiValue[__REMCOMPARS__]; 00089 00092 TObject* fxAggregate; 00093 00094 static const char* fgxREMCOMEMPTYSTRING; 00095 00096 00097 ClassDef(TGo4RemoteCommand,1) 00098 }; 00099 00100 #endif //TGO4REMOTECOMMAND_H 00101 00102 //----------------------------END OF GO4 SOURCE FILE ---------------------