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

FluxSvc_load.cxx

Go to the documentation of this file.
00001 //====================================================================
00002 //  FluxSvc_load.cpp
00003 //--------------------------------------------------------------------
00004 //
00005 //  Package    : FluxSvc
00006 //
00007 //  Description: Implementation of <Package>_load routine. This routine 
00008 //               is needed for forcing the linker to load all the components
00009 //               of the library.. 
00010 //
00011 //====================================================================
00012 #include "GaudiKernel/ICnvFactory.h"
00013 #include "GaudiKernel/ISvcFactory.h"
00014 #include "GaudiKernel/IAlgFactory.h"
00015 #include "GaudiKernel/IToolFactory.h"
00016 
00017 #define DLL_DECL_SERVICE(x)    extern const ISvcFactory& x##Factory; x##Factory.addRef();
00018 #define DLL_DECL_CONVERTER(x)  extern const ICnvFactory& x##Factory; x##Factory.addRef();
00019 #define DLL_DECL_ALGORITHM(x)  extern const IAlgFactory& x##Factory; x##Factory.addRef();
00020 #define DLL_DECL_TOOL(x)       extern const IToolFactory& x##Factory; x##Factory.addRef();
00021 
00022 void FluxSvc_load() {
00023     DLL_DECL_SERVICE( FluxSvc );
00024     DLL_DECL_ALGORITHM( FluxAlg );
00025     DLL_DECL_ALGORITHM( ExposureAlg );
00026     DLL_DECL_TOOL( FluxSvcRandom );
00027 }
00028 
00029 extern "C" void FluxSvc_loadRef() {
00030     FluxSvc_load();
00031 }

Generated on Wed Oct 16 14:01:29 2002 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001