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

/Go4TaskHandler/TGo4TaskHandlerException.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 "TGo4TaskHandlerException.h"
00017 
00018 #include "Go4Log/TGo4Log.h"
00019 #include "TGo4TaskHandler.h"
00020 #include "TGo4TaskHandlerRunnable.h"
00021 
00022 TGo4TaskHandlerException::TGo4TaskHandlerException (TGo4TaskHandler* taskhandler)
00023 {
00024    fxDescription= "!!!-- Go4 TaskHandler Exception --!!!";
00025    fxCaller=0;
00026    fxTaskHandler=taskhandler;
00027    if(fxTaskHandler)
00028       {
00029          // o.k. we have a given taskhandler
00030          fxThreadManager =fxTaskHandler->GetThreadManager();
00031       }
00032    else
00033       {
00034          // wrong call with zero pointer: dummy init of manager, will be checked in Handle()
00035          fxThreadManager=0;
00036       }
00037 }
00038 
00039 TGo4TaskHandlerException::TGo4TaskHandlerException(TGo4TaskHandlerRunnable* run)
00040 {
00041    fxDescription= "!!!-- Go4 TaskHandler Exception --!!!";
00042    fxCaller=run;
00043    if(fxCaller)
00044       {
00045          fxTaskHandler=fxCaller->GetTaskHandler();
00046       }
00047    else
00048       {
00049          fxTaskHandler=0;
00050       }
00051 
00052    if(fxTaskHandler)
00053       {
00054          // o.k. we have a given taskhandler
00055          fxThreadManager =fxTaskHandler->GetThreadManager();
00056       }
00057    else
00058       {
00059          // wrong call with zero pointer: dummy init of manager, will be checked in Handle()
00060          fxThreadManager=0;
00061       }
00062 
00063 
00064 
00065 
00066 }
00067 
00068 
00069 
00070 TGo4TaskHandlerException::~TGo4TaskHandlerException()
00071 {
00072 
00073 }
00074 
00075 
00076 
00077 
00078 //----------------------------END OF GO4 SOURCE FILE ---------------------

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