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

AIDA_FitFactoryProvider.cpp

Go to the documentation of this file.
00001 #include "AIDA_FitFactoryProvider.h"
00002 #include "AIDA_FitFactory.h"
00003 #include "AIDA_Dev/IDevAnalysisFactory.h"
00004 
00005 static Anaphe::AIDA_Fitter_FML::AIDA_FitFactoryProvider provider;
00006 
00007 namespace Anaphe {
00008   namespace AIDA_Fitter_FML {
00009     class Initializer {
00010     public:
00011       Initializer() {
00012         AIDA::Dev::IDevAnalysisFactory* af = dynamic_cast<AIDA::Dev::IDevAnalysisFactory*>( AIDA_createAnalysisFactory() );
00013         if ( af ) {
00014           af->registerFitFactoryProvider( static_cast< AIDA::Dev::IFitFactoryProvider* >( &provider ) );
00015           delete af;
00016         }
00017       }
00018       ~Initializer() {}
00019     };
00020   }
00021 }
00022 
00023 static Anaphe::AIDA_Fitter_FML::Initializer myInitializer;
00024 
00025 Anaphe::AIDA_Fitter_FML::AIDA_FitFactoryProvider::AIDA_FitFactoryProvider()
00026 {}
00027 
00028 
00029 Anaphe::AIDA_Fitter_FML::AIDA_FitFactoryProvider::~AIDA_FitFactoryProvider()
00030 {}
00031 
00032 
00033 AIDA::IFitFactory*
00034 Anaphe::AIDA_Fitter_FML::AIDA_FitFactoryProvider::createFactory()
00035 {
00036   return new Anaphe::AIDA_Fitter_FML::AIDA_FitFactory;
00037 }

Generated on Tue May 20 14:49:01 2003 for AIDA_Fitter_FML by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002