Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

CalRecon_dll.cpp

Go to the documentation of this file.
00001 //====================================================================
00002 //  GlastSvc_dll.cpp
00003 //--------------------------------------------------------------------
00004 //
00005 //  Package    : GlastSvc
00006 //
00007 //  Description: Implementation of DllMain routine.
00008 //               The DLL initialisation must be done seperately for 
00009 //               each DLL. 
00010 //
00011 //  Author     : H. Gillespie
00012 //  Created    : 1 Aug 00
00013 //  Changes    : 
00014 //               Version copied from Glast, and addopted for GlastSvc
00015 //
00016 //====================================================================
00017 
00018 // DllMain entry point
00019 #include "GaudiKernel/DllMain.icpp"
00020 #include <iostream>
00021 void GaudiDll::initialize(void*) 
00022 {
00023 }
00024 
00025 void GaudiDll::finalize(void*) 
00026 {
00027 }
00028 extern void CalRecon_load();
00029 #include "GaudiKernel/FactoryTable.h"
00030 
00031 extern "C" FactoryTable::EntryList* getFactoryEntries() {
00032   static bool first = true;
00033   if ( first ) {  // Don't call for UNIX
00034     CalRecon_load();
00035     first = false;
00036   }
00037   return FactoryTable::instance()->getEntries();
00038 } 
00039 
00040 void FATAL(const char * msg) {
00041     std::cerr << "Stupid error from Calrecon DLL: " << msg << std::endl;
00042 }
00043 

Generated on Thu Nov 29 16:38:48 2001 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001