| # Gaudi Framework, version v22r0 |

Home |  | Generated: 9 Feb 2011

# LoadFactoryEntries.h

Go to the documentation of this file.

    00001 // $Header: /tmp/svngaudi/tmp.jEpFh25751/Gaudi/GaudiKernel/GaudiKernel/LoadFactoryEntries.h,v 1.4 2006/11/30 14:43:13 mato Exp $
    00002 #ifndef GAUDIKERNEL_LOADFACTORYENTRIES_H
    00003 #define GAUDIKERNEL_LOADFACTORYENTRIES_H 1
    00004 //====================================================================
    00005 //  LoadFactoryEntries.h
    00006 //--------------------------------------------------------------------
    00007 //
    00008 //  Package    : GaudiKernel
    00009 //
    00010 //  Description: Implementation of getFactoryEntries() routine.
    00011 //               This routine is needed for forcing the linker
    00012 //               to load all the components of the library.
    00013 //
    00014 //====================================================================
    00015
    00016 // DllMain entry point
    00017 #include "GaudiKernel/DllMain.icpp"
    00018
    00019 #if !defined(__APPLE__)
    00020   void GaudiDll::initialize(void*) {}
    00021   void GaudiDll::finalize(void*) {}
    00022 #endif
    00023
    00024 #if defined(GAUDI_V20_COMPAT) && !defined(G21_HIDE_SYMBOLS)
    00025 #ifdef _WIN32
    00026   #define FACTORYTABLE_API __declspec(dllexport)
    00027 #else
    00028   #define FACTORYTABLE_API
    00029 #endif
    00030
    00031 #define LOAD_FACTORY_ENTRIES(x) \
    00032 extern "C" FACTORYTABLE_API void* x##_getFactoryEntries() {  \
    00033   return 0; \
    00034 }
    00035
    00036 #else
    00037
    00038 #define LOAD_FACTORY_ENTRIES(x) \
    00039 extern "C" GAUDI_EXPORT void* x##_getFactoryEntries() {  \
    00040 return 0; \
    00041 }
    00042
    00043 #endif // GAUDI_V20_COMPAT
    00044
    00045 #endif // GAUDIKERNEL_LOADFACTORYENTRIES_H

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines