Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4CommandsTaskHandler/TGo4ComConnectSlave.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE 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 TGO4COMCONNECTSLAVE_H
00017 #define TGO4COMCONNECTSLAVE_H
00018 
00019 #include "TString.h"
00020 #include "TGo4TaskHandlerCommand.h"
00021 
00027 class TGo4ComConnectSlave : public TGo4TaskHandlerCommand {
00028   public:
00029 
00030     TGo4ComConnectSlave();
00031 
00032     virtual ~TGo4ComConnectSlave();
00033 
00035     void SetSlaveName(const char* name)
00036         {
00037             fxSlaveName = name;
00038         }
00039 
00040 
00042     void SetSlaveHost(const char* name)
00043         {
00044             fxSlaveHost = name;
00045         }
00046 
00048     void SetSlaveDir(const char* name)
00049         {
00050             fxSlaveDir = name;
00051         }
00052 
00054     void SetSlaveExecutable(const char* name)
00055         {
00056             fxSlaveExecutable = name;
00057         }
00058 
00059     void SetSlavePort(UInt_t num){ fuPort=num; }
00060 
00062     void SetSlaveMode(Int_t mode) { fiMode=mode; }
00063 
00064     void SetStartServer(Bool_t on) { fbStartServer=on; }
00065 
00066     void SetLogin(Go4CommandMode_t mode) { fiLoginMode=mode; }
00067 
00068     void SetPassword(const char* wd){fxPasswd=wd;}
00069 
00070     Int_t ExeCom();
00071 
00072   private:
00073 
00075    TString fxSlaveName;
00076 
00078    TString fxSlaveHost;
00079 
00081    TString fxSlaveDir;
00082 
00084    TString fxSlaveExecutable;
00085 
00087    Int_t fiMode;
00088  
00090    UInt_t fuPort;
00091 
00095    Bool_t fbStartServer;
00096    
00098    Go4CommandMode_t fiLoginMode;
00099    
00101    TString fxPasswd; 
00102 
00103    ClassDef(TGo4ComConnectSlave,1);
00104 };
00105 
00106 #endif //TGO4COMCONNECTSLAVE_H
00107 
00108 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:51 2005 for Go4-v2.10-5 by doxygen1.2.15