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

/Go4TaskHandlerExample/TGo4ExampleCommand.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 "TGo4ExampleCommand.h"
00017 
00018 #include "Go4Log/TGo4Log.h"
00019 
00020 TGo4ExampleCommand::TGo4ExampleCommand() : TGo4Command()
00021 {
00022    TRACE((12,"TGo4ExampleCommand::TGo4ExampleCommand() ctor",__LINE__, __FILE__));
00023    //fxReceiver=0;
00024 
00025    fbIsEnabled=kTRUE;
00026    fbIsSynchron=kTRUE;
00027    SetReceiverName("ExampleApplication");  // sets the receiver name checked by command invoker
00028                                              // receiver name neednt be class name!
00029 }
00030 
00031 TGo4ExampleCommand::TGo4ExampleCommand(const TGo4ExampleCommand &right)
00032   :TGo4Command(right)
00033 {
00034    TRACE((12,"TGo4ExampleCommand::TGo4ExampleCommand() copy constructor",__LINE__, __FILE__));
00035    //fxReceiver=right.fxReceiver;
00036 }
00037 TGo4ExampleCommand::~TGo4ExampleCommand()
00038 {
00039   TRACE((12,"TGo4ExampleCommand::~TGo4ExampleCommand() dtor",__LINE__, __FILE__));
00040 }
00041 
00042 TGo4ExampleCommand::TGo4ExampleCommand(const char* name, const char* desc)
00043 : TGo4Command(name,desc,6)
00044 {
00045    TRACE((12,"TGo4ExampleCommand::TGo4ExampleCommand(Text_t*, Text_t*) ctor",__LINE__, __FILE__));
00046    //fxReceiver=0;
00047 
00048    fbIsEnabled=kTRUE;
00049    fbIsSynchron=kTRUE;
00050    SetReceiverName("ExampleApplication");  // sets the receiver name checked by command invoker
00051                                            // receiver name neednt be class name!
00052 }
00053 
00054 TGo4ExampleCommand & TGo4ExampleCommand::operator=(const TGo4ExampleCommand &right)
00055 {
00056    TRACE((12,"TGo4ExampleCommand::operator=",__LINE__, __FILE__));
00057    if (&right!=this)
00058       {
00059          TRACE((11,"TGo4ExampleCommand::operator= processing copy",__LINE__, __FILE__));
00060          TGo4Command::operator=(right); // copy base class members
00061           // put additional member copies here...
00062          //fxReceiver=right.fxReceiver;
00063          return *this;
00064       }
00065    else
00066       {
00067          // copy is already source object
00068          TRACE((11,"TGo4ExampleCommand::operator= source and destination objects are identical",__LINE__, __FILE__));
00069          return *this;
00070       }
00071 }
00072 
00073 ClassImp(TGo4ExampleCommand)
00074 
00075 //----------------------------END OF GO4 SOURCE FILE ---------------------

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