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

/Go4CommandsTaskHandler/TGo4ComMasterQuit.cxx

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 /* Generated by Together */
00017 
00018 #include "TGo4ComMasterQuit.h"
00019 #include "Go4Log/TGo4Log.h"
00020 #include "Go4TaskHandler/TGo4Master.h"
00021 
00022 TGo4ComMasterQuit::TGo4ComMasterQuit()
00023 :TGo4TaskHandlerCommand("MRQuit","quits the master and the whole application")
00024 {
00025    SetReceiverName("MasterTask"); // sets the receiver name checked by command invoker
00026                                   // receiver name neednt be class name!
00027    fbIsSynchron=kFALSE;
00028    fbIsLocal=kTRUE;
00029 }
00030 TGo4ComMasterQuit::~TGo4ComMasterQuit()
00031 {
00032 
00033 }
00034 Int_t TGo4ComMasterQuit::ExeCom()
00035 {
00036    TGo4Master* master=dynamic_cast<TGo4Master*>(fxReceiverBase);
00037    if (master!=0)
00038       {
00039          master->Quit();
00040          return 0;
00041       }
00042    else
00043       {
00044          TGo4Log::Debug(" !!! ComMasterQuit ''%s'': NO RECEIVER ERROR!!!",GetName());
00045          return 1;
00046       }
00047    return -1;
00048 }
00049 
00050 ClassImp(TGo4ComMasterQuit);
00051 
00052 //----------------------------END OF GO4 SOURCE FILE ---------------------

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