// $Id$ //----------------------------------------------------------------------- // The GSI Online Offline Object Oriented (Go4) Project // Experiment Data Processing at EE department, GSI //----------------------------------------------------------------------- // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH // Planckstr. 1, 64291 Darmstadt, Germany // Contact: http://go4.gsi.de //----------------------------------------------------------------------- // This software can be used under the license agreements as stated // in Go4License.txt file which is part of the distribution. //----------------------------------------------------------------------- #ifndef TGO4COMDISCONNECTSLAVE_H #define TGO4COMDISCONNECTSLAVE_H #include "TGo4TaskHandlerCommand.h" #include "TString.h" /** * master command: current slave * is removed (disconnected) from server * @since 17-03-2005 * @author Joern Adamczewski */ class TGo4ComDisconnectSlave : public TGo4TaskHandlerCommand { public: TGo4ComDisconnectSlave(); /** Specify the name of the client to be removed */ void SetSlave(const char *name) { fxSlaveName = name; } void SetWaitForSlave(Bool_t wait = kTRUE) { fbWaitForSlave = wait; } Int_t ExeCom() override; private: /** name of the client to be removed */ TString fxSlaveName; Bool_t fbWaitForSlave{kFALSE}; ClassDefOverride(TGo4ComDisconnectSlave,1); }; #endif //TGO4COMDISCONNECTSLAVE_H