Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4TaskHandlerException.cxx

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE 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 "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 TGo4TaskHandlerException::~TGo4TaskHandlerException()
00065 {
00066 }
00067 
00068 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:30 2008 for Go4-v3.04-1 by  doxygen 1.4.2