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

/Go4CommandsAnalysis/TGo4AnalysisCommand.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 #include "TGo4AnalysisCommand.h"
00017 
00018 #include "Go4Log/TGo4Log.h"
00019 #include "Go4AnalysisClient/TGo4AnalysisClientImp.h"
00020 
00021 TGo4AnalysisCommand::TGo4AnalysisCommand(const char* name, const char* desc) :
00022    TGo4Command(name, desc,7)
00023 {
00024    TRACE((12,"TGo4AnalysisCommand::TGo4AnalysisCommand(const char*, const char*) ctor",__LINE__, __FILE__));
00025 
00026    fbIsEnabled=kTRUE;
00027    fbIsSynchron=kTRUE;
00028    SetReceiverName("AnalysisClient");  // sets the receiver name checked by command invoker
00029                                  // receiver name neednt be class name!
00030 }
00031 
00032 TGo4AnalysisCommand::TGo4AnalysisCommand() : TGo4Command()
00033 
00034 {
00035    TRACE((12,"TGo4AnalysisCommand::TGo4AnalysisCommand() ctor",__LINE__, __FILE__));
00036 
00037    fbIsEnabled=kTRUE;
00038    fbIsSynchron=kTRUE;
00039    SetReceiverName("AnalysisClient");  // sets the receiver name checked by command invoker
00040                                  // receiver name neednt be class name!
00041 }
00042 
00043 
00044 TGo4AnalysisCommand::~TGo4AnalysisCommand()
00045 {
00046   TRACE((12,"TGo4AnalysisCommand::~TGo4AnalysisCommand() dtor",__LINE__, __FILE__));
00047 }
00048 
00049 
00050 TGo4AnalysisCommand::TGo4AnalysisCommand(const TGo4AnalysisCommand &right)
00051   :TGo4Command(right)
00052 {
00053    TRACE((12,"TGo4AnalysisCommand::TGo4AnalysisCommand() copy constructor",__LINE__, __FILE__));
00054    //fxReceiver=right.fxReceiver;
00055 }
00056 
00057 TGo4AnalysisCommand & TGo4AnalysisCommand::operator=(const TGo4AnalysisCommand &right)
00058 {
00059    TRACE((12,"TGo4AnalysisCommand::operator=",__LINE__, __FILE__));
00060    if (&right!=this)
00061       {
00062          TRACE((11,"TGo4AnalysisCommand::operator= processing copy",__LINE__, __FILE__));
00063          TGo4Command::operator=(right); // copy base class members
00064           // put additional member copies here...
00065          //fxReceiver=right.fxReceiver;
00066          return *this;
00067       }
00068    else
00069       {
00070          // copy is already source object
00071          TRACE((11,"TGo4AnalysisCommand::operator= source and destination objects are identical",__LINE__, __FILE__));
00072          return *this;
00073       }
00074 }
00075 
00076 Int_t TGo4AnalysisCommand::RefuseCom()
00077 {
00078 TGo4AnalysisClient* cli=dynamic_cast<TGo4AnalysisClient*> (fxReceiverBase);
00079 if(cli)
00080    {
00081       cli->SendStatusMessage(2,kTRUE, "%s::Command %s from GUI %s not allowed for %s (mode %d)",
00082                      GetTaskName(), GetName(), GetTaskName(),GetModeDescription(GetMode()), GetMode());
00083    }   
00084 else
00085    {
00086       TGo4Command::RefuseCom();
00087    }
00088 return 0;      
00089 }
00090 
00091 ClassImp(TGo4AnalysisCommand)
00092 
00093 //----------------------------END OF GO4 SOURCE FILE ---------------------

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